Lennart Poettering
74cbefe1cd
hwdb: f23 → touchpad_off
2025-01-03 11:36:43 +01:00
Lennart Poettering
7b649a12ba
hwdb: f22 → touchpad_on
2025-01-03 11:36:42 +01:00
Lennart Poettering
27f33c743f
hwdb: f21 → touchpad_toggle
...
Similar to the previous commit.
2025-01-03 11:36:42 +01:00
Lennart Poettering
d94efc0906
hwdb: f20 → micmute
...
See: #34323
2025-01-03 11:36:42 +01:00
Lennart Poettering
55d47a8988
update TODO
2025-01-03 10:48:07 +01:00
Lennart Poettering
36d2096b84
debug-generator: rework from post-merge review #35410 ( #35696 )
...
- https://github.com/systemd/systemd/pull/35410#discussion_r1893664993
- https://github.com/systemd/systemd/pull/35410#discussion_r1893667581
2025-01-03 09:34:50 +01:00
Chris Mayo
0726d988ec
hwdb: Add macro keys for HP 430 Programmable Wireless Keypad
2025-01-03 09:23:45 +01:00
Daan De Meyer
de8466e436
random-util: our baseline includes getrandom() (v3.17) now ( #35816 )
2025-01-03 09:23:06 +01:00
Luca Boccassi
2976730a4d
resolved: stop mdns/lnrr when config changes to disabled on reload
...
Currently on reload mdns/lnrr are enabled if they were disabled,
but not viceversa. Fix it.
Follow-up for 14a5217679
2025-01-03 09:22:45 +01:00
Michael Limiero
c76a7b7c8c
Correct ACCEL_MOUNT_MATRIX for Chuwi Hi10 Max
2025-01-03 09:21:55 +01:00
Daan De Meyer
96cf4d3243
terminal-util: introduce terminal_{new,detach}_session helpers ( #35811 )
2025-01-03 09:21:19 +01:00
Daan De Meyer
628a3fc287
network/dhcp: introduce global setting for DHCPv4 client identifier ( #35783 )
...
Typically, the same client identifier setting is used for all
interfaces. Hence, better to provide the system-wide setting to specify
the client identifier.
2025-01-03 09:19:55 +01:00
Antonio Alvarez Feijoo
5c79396def
units: some improvements in breakpoint-* units.
...
- Set `RefuseManualStart=yes`.
- Order before shutdown.target and emergency.target.
- Remove wrong `Wants=remote-fs.target` dependency from
breakpoint-pre-switch-root.service.
- Remove unneeded `After=sysroot.mount` from breakpoint-pre-switch-root.service
(implied by initrd.target).
2025-01-03 08:32:43 +01:00
Antonio Alvarez Feijoo
aeb97a49c3
debug-generator: use helper to check breakpoint validity
2025-01-03 08:32:27 +01:00
Mike Yuan
1de1282320
terminal-util: introduce terminal_{new,detach}_session helpers
...
Prompted by #35761
2025-01-02 21:14:38 +01:00
Mike Yuan
217bd588c2
terminal-util: regroup some functions
2025-01-02 20:42:20 +01:00
Mike Yuan
c439bd25ca
random-util: our baseline includes getrandom() (v3.17) now
...
Plus, linux/random.h never defined getrandom(), hence remove
the custom machinery for sys/random.h vs linux/random.h
in favor of single HAVE_GETRANDOM.
2025-01-02 20:40:45 +01:00
Mike Yuan
2627cd1343
random-util: drop needless conditionalization of sys/auxv.h
...
We assume its existence in basic/build-path.c, shared/userdb.c,
and coredump/coredump.c already, for which nothing has been reported
so far. So this seems safe to drop.
2025-01-02 20:34:21 +01:00
Mike Yuan
aad028e187
missing_syscall: mandate __NR_memfd_create
...
Follow-up for 6db5a6e799
For basic system functionality we require memfd nowadays,
so fail the build if syscall number not available.
2025-01-02 20:34:20 +01:00
Mike Yuan
04e2bd63b6
README: document kernel version for GRND_INSECURE and close_range()
2025-01-02 20:04:42 +01:00
Mike Yuan
dfe3fe77f7
shared/hibernate-util: handle the case where no swap has available backing dev ( #35802 )
...
Fixes https://github.com/systemd/systemd/issues/35798
Replaces https://github.com/systemd/systemd/pull/35801
2025-01-02 19:26:58 +01:00
Lennart Poettering
5ff7046e61
ask-password: add varlink IPC interface and various other additions and fixes ( #35074 )
2025-01-02 18:21:35 +01:00
Lennart Poettering
ed8e7e2393
core/socket: several fixlets ( #35637 )
...
Fixes https://github.com/systemd/systemd/issues/35635
2025-01-02 18:20:48 +01:00
Luca Boccassi
0182958047
test: update README's Ubuntu CI section for mkosi changes
2025-01-02 17:04:30 +00:00
Luca Boccassi
021b51a72b
Two doc updates ( #35810 )
2025-01-02 16:04:00 +00:00
Lennart Poettering
3fbca0e23a
test: add CI test validating the new varlink interface and more
2025-01-02 16:39:33 +01:00
Lennart Poettering
7fd0ea6cf6
ask-password: add comment with well-known errors from ask_password_auto()
2025-01-02 16:39:30 +01:00
Lennart Poettering
066f6bfb62
ask-password: add Varlink API for querying passwords from the user
...
This turns systemd-ask-password into a small Varlink service, so that
there's an standard IPC way to ask for a password. It mostly directly
exposes the functionality of the Varlink service.
2025-01-02 16:39:05 +01:00
Lennart Poettering
d66894a7a5
ask-password-api: add new "hup_fd" field to AskPasswordReq
...
This new field allows specification of an fd on which the password
prompt logic will look for POLLHUP events for, and if seen will abort
the query.
The usecase for this is that when we query for a pw on behalf of a
Varlink client we can abort the query automatically if the client dies.
2025-01-02 16:38:44 +01:00
Lennart Poettering
c4a02a526d
ask-password-api: move timeout into AskPasswordRequest structure too
2025-01-02 16:38:25 +01:00
Lennart Poettering
72068d9d25
ask-password-api: move tty_fd into AskPasswordRequest structure, too
2025-01-02 16:38:12 +01:00
Lennart Poettering
4ff3689ad2
ask-password-api: move 'flag_file' from function parameter into AskPasswordRequest structure
2025-01-02 16:38:00 +01:00
Lennart Poettering
254649d576
ask-password-agent: send READY=1 when we established inotify watch
2025-01-02 16:37:57 +01:00
Lennart Poettering
49187cfc34
ask-password-agent: optionally read pw to reply from env var
2025-01-02 16:37:54 +01:00
Lennart Poettering
1a2e4b614e
pcrextend: split out varlink server setup into its own function
2025-01-02 16:37:52 +01:00
Lennart Poettering
107986a33e
sd-varlink: expose api to get input/output fd separately
2025-01-02 16:35:42 +01:00
Daan De Meyer
722e0ccf0e
docs: Update code coverage documentation
2025-01-02 16:25:19 +01:00
Daan De Meyer
8a65263650
docs: Use mkosi sandbox in test documentation as well
...
Same change as in HACKING.md, but for running the integration tests.
2025-01-02 16:17:53 +01:00
Mike Yuan
de69879b62
shared/hibernate-util: drop support for kernels lacking /sys/power/resume_offset
...
The current fallback path is actually unreliable, given
the kernel *supports* setting the resume offset through
cmdline after all, but just not exposed under /sys/.
For v258 let's drop it hence.
I didn't bump the baseline to 4.17, but merely documented
new requirement in README, because there's certainly more
compat stuff to drop between 4.3 and 4.17, and README is
a useful list for things to kill. We'll get to 5.4 eventually.
2025-01-02 15:55:33 +01:00
Mike Yuan
733bc1aee8
README: document a bunch of new kernel APIs we utilize
2025-01-02 15:55:32 +01:00
Mike Yuan
8b0818fa45
shared/blockdev-util: shorten the code a bit
...
If btrfs_get_block_device_fd() returns 0, ret is already initialized.
2025-01-02 15:29:34 +01:00
Mike Yuan
bd3d361580
shared/hibernate-util: handle the case where no swap has available backing dev
...
This also makes find_suitable_hibernation_device() report
more accurate error (ENOSPC -> ESTALE) if there's
no swap space on the system at all but resume= is set.
Fixes #35798
Replaces #35801
2025-01-02 15:29:34 +01:00
Mike Yuan and Yu Watanabe
6d3b2273b1
shared/hibernate-util: don't attempt to fiemap fd if no backing dev available
...
Prompted by #35798
Co-authored-by: Yu Watanabe <watanabe.yu+github@gmail.com >
2025-01-02 15:29:32 +01:00
Yu Watanabe
66f379b63d
systemctl: certainly ignore ENOENT in checking inhibitors
...
Fixes a bug caused by 804874d26a .
Follow-up for 084f361b50 and
a1417e5563 .
Note, ERRNO_IS_NEG_DISCONNECT() includes ENONET rather than ENOENT...
So, ENOENT needs to be handled explicitly.
Fixes #35757 and #35806 .
2025-01-02 14:15:09 +00:00
Antonio Alvarez Feijoo
b70ba82241
units/breakpoint-pre-basic.service: explicitly order it before sysroot.mount
...
If `rd.systemd.break=pre-mount` is not set during boot, there is no unit that
prevents sysroot.mount from being activated.
2025-01-02 15:00:34 +01:00
Antonio Alvarez Feijoo
e6922ac334
man/debug-generator: replace "main system" with "host"
2025-01-02 14:59:00 +01:00
Daan De Meyer
76d80cc343
mkosi: Allow disabling vcs-tag via environment variable
2025-01-02 14:54:19 +01:00
Luca Boccassi
f1f0230cf0
bash-completion/journalctl: list user units when --user is already specified ( #35799 )
...
Also, escape the current input before matching listed user units.
Fixes #35794 .
2025-01-02 11:20:31 +00:00
Mike Yuan
03ccee1939
errno-list: prefer strerrorname_np() as errno_to_name() provider
2025-01-02 12:01:53 +01:00
Yu Watanabe
bbe1d1bcb0
bash-completion/journalctl: also escape the current input of user unit
...
Follow-up for cec82cb943 .
2025-01-02 11:50:44 +09:00