Lennart Poettering
a37640653c
ci: add testcase for multi-profile UKIs
...
This tests the whole shebang:
1. That ukify can generate them properly
2. That systemd-boot can dissect them properly
3. That systemd-stub can accept profile selection propery
4. That the profile information ends up in /run/systemd/stub/ properly
5. That systemd-measure correctly calculates the expected PCR 11 values
for each profile and that we can unlock a public-key bound LUKS
volume with it
2024-09-17 10:40:51 +02:00
Yu Watanabe
a65b864835
docs: fix typo in filename: REATLIME -> REALTIME
2024-09-17 10:21:54 +02:00
Yu Watanabe
9959681a0d
test/repart: fix mkfs checker
...
Follow-up for 27cacec939 .
2024-09-17 10:15:21 +02:00
Daan De Meyer
b3ebd480d6
Fix generator logging
...
log_setup() overrides the previously set log target again so we
can't use it in log_setup_generator().
Follow-up for aa976d8788
2024-09-17 15:10:39 +09:00
Arian van Putten
6695ff4c15
CONTROL_GROUP_INTERFACE: fix link to systemd-run code
2024-09-17 15:09:48 +09:00
Yu Watanabe
9671efff78
NEWS: fix typo
...
Follow-up for dcc359010c .
2024-09-16 11:50:48 +09:00
Yu Watanabe
4f0bc2582e
man: fix typo
...
Follow-up for a632d8dd9f .
2024-09-16 11:49:04 +09:00
Yu Watanabe
3292120adf
nspawn: fix typo
...
Follow-up for d7a6bb9891 .
2024-09-16 11:47:43 +09:00
Yu Watanabe
f6cc5e1c8d
Merge pull request #34393 from poettering/tmpfiles-ownership-flag
...
tmpfiles: introduce an explicit line flag $ for enabling purge logic …
2024-09-16 10:51:09 +09:00
Yu Watanabe
590f430cac
Merge pull request #34425 from yuwata/udev-rules-case-insensitive-match
...
udev-rules: support case insensitive match
2024-09-16 10:42:37 +09:00
Mike Yuan
93d2d36638
basic/build: also include BTF status
2024-09-16 10:42:16 +09:00
Lennart Poettering
369b12375b
coredump: use _cleanup_(iovec_done) where appropriate
2024-09-16 10:42:02 +09:00
Yu Watanabe
b5ec8f77e0
Merge pull request #34434 from poettering/bootctl-stub-paths
...
bootctl: expose new stub path efi vars and related
2024-09-16 10:41:24 +09:00
Lennart Poettering
3e0a3a0259
bootctl: show whether a PE file is an addon in 'booctl kernel-identify'
2024-09-16 10:41:10 +09:00
Celeste Liu
6573f0c82c
hwdb: add Kensington SlimBlade Pro trackball (Bluetooth mode)
...
Wired and 2.4G dongle connectivity is covered by general trackball rule,
but with Bluetooth connectivity Kensington SlimBlade Pro uses the name
"SlimBlade Pro" which doesn't contain "[Tt]rack[Bb]all". We need to
process it specially.
Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com >
2024-09-16 10:40:56 +09:00
Daan De Meyer
e0258ac886
repart: Fix log messages in partition_populate_directory()
...
We're not actually populating a filesystem here, we're preparing
to populate a filesystem, so update the log messages accordingly.
2024-09-15 22:40:10 +02:00
Lennart Poettering
a859d0d378
tmpfiles.d: add $ flag to all lines which are clearly private to our packages, and should be removed on package removal
...
(This excludes any dirs that contain resources placed there by the user)
(I also didn't bother marking resources belonging to components that are
really not optional for us)
2024-09-15 19:44:05 +02:00
Lennart Poettering
db15657dfb
tmpfiles: introduce an explicit line flag $ for enabling purge logic for a line
...
Let's make the risk of accidental misuse, and mark lines that shall be
covered by --purge with an explicit new flag "$".
See: #33349
2024-09-15 19:43:09 +02:00
Lennart Poettering
2aa3005ad2
bootctl: also show current/default/oneshot entry literally in output
2024-09-15 19:34:19 +02:00
Lennart Poettering
90cf998875
bootctl: add --print-loader-path + --print-stub-path
...
These are inspired by the existing commands that return the path to the
boot or ESP partitions. However, these new commands show the path to the
boot loader (systemd-boot) or UKI/stub (systemd-stub) that was used on
the current boot. This information is derived from EFI variables.
2024-09-15 19:34:19 +02:00
Lennart Poettering
c8d60ae79d
efivars: add helper that reads an fs path from an efi var
2024-09-15 19:34:19 +02:00
Lennart Poettering
bfcf48b842
bootctl: show stub partition data too in "status" too
2024-09-15 19:33:48 +02:00
Mike Yuan
3a41a21666
man/bootup: rename initrd to exitrd at one more place
...
Follow-up for f2c2fa87b6
2024-09-16 01:35:31 +09:00
Luca Boccassi
37c2010bcf
test: fix ASAN options in TEST-29-PORTABLE
...
Bash arrays cannot be exported, so we need to redefine it in each
subtest
Follow-up for 680dec33f2
2024-09-15 18:10:29 +02:00
Yu Watanabe and Ryan Wilson
5f5c5c48b9
udev-rules: support case insensitive match
...
This introduces 'i' prefix for match string. When specified, string or
pattern will match case-insensitively.
Closes #34359 .
Co-authored-by: Ryan Wilson <ryantimwilson@meta.com >
2024-09-15 23:09:26 +09:00
Daan De Meyer
27a8a29e32
mkosi: Disable makepkg PKGBUILD linting using the newly added environment variable
2024-09-15 12:44:15 +02:00
Daan De Meyer
faa79a78c8
Merge pull request #34409 from DaanDeMeyer/boot-fix
...
boot: Make initrd_prepare() semantically equivalent to combine_initrds()
2024-09-15 11:57:57 +02:00
Daan De Meyer
f8fa4222c9
boot: Make initrd_prepare() semantically equivalent to combine_initrds()
...
Currently, trying to boot images with type 1 entries generated by mkosi
with qemu freezes in the kernel EFI stub. I'm not going to pretend I
understand what's going on, but when I reported a similar problem with
UKIs, the fix was to rework the code in combine_initrds() in the stub
to behave like it does today. It seems that same fix was never applied
to systemd-boot's combine_initrds() function, so let's do that now to
fix the freezes I've been seeing trying to boot images with type 1 entries
in qemu.
2024-09-15 10:11:59 +02:00
Daan De Meyer
c9c5c8d29b
boot: Use TAKE_STRUCT() in one more place
2024-09-15 10:11:59 +02:00
Lennart Poettering
1b7ef87fc1
Merge pull request #34347 from poettering/uki-with-many-bootctl
...
bootctl: multi-profile UKI support
2024-09-15 09:06:58 +02:00
Yu Watanabe
68fdef46a7
udev-rules: embed UdevRuleToken.attr_match_remove_trailing_whitespace flag into UdevRuleMatchType
...
No functional change, just refactoring and preparation for later change.
2024-09-15 13:52:50 +09:00
Luca Boccassi
680dec33f2
test: split TEST-29-PORTABLE in subtests
...
The test script is quite long and hard to read. Split it.
Start with one image-based and one directory-based subtest.
2024-09-15 12:23:12 +09:00
Ronan Pigott
32b8065e87
load-fragment: terminate the specifier table ( #34421 )
...
Otherwise an invalid specifier iterates over uninitialized data.
Fixes a bug introduced by 0b40688d18 (v254).
2024-09-15 12:21:39 +09:00
Yu Watanabe
f921e7d6a3
Merge pull request #34419 from yuwata/creds
...
creds: several follow-ups and cleanups
2024-09-15 12:15:57 +09:00
Yu Watanabe
d97c672be0
Merge pull request #34405 from poettering/dns-domain-validate-fix
...
dns-domain: fix validation check for max name
2024-09-15 03:33:12 +09:00
Yu Watanabe
60b2ddc9b7
creds: move -h/--help and --version to correct section in the help message
2024-09-15 03:22:13 +09:00
Yu Watanabe
6c38915d35
creds: add short comment that has-tpm2 is moved
...
Follow-up for 58e359604f .
2024-09-15 03:22:04 +09:00
Yu Watanabe
acdfb85d97
creds: align table
2024-09-15 03:19:21 +09:00
Yu Watanabe
4f176f24d6
creds: drop unnecessary include of build-path.h
...
Follow-up for 58e359604f .
2024-09-15 03:18:46 +09:00
Matthieu CHARETTE
8ee3d4df80
Add HUAWEI MateBook D 15 AMD ACCEL properties
2024-09-14 19:50:28 +02:00
Mike Yuan
c7f7225f1a
Merge pull request #34401 from poettering/implicit-sigprocmask
...
tree-wide: make sigprocmask() changes more automatic
2024-09-14 17:47:47 +02:00
Gregory Arenius
3f3dc6ab84
Add ACCEL_MOUNT_MATRIX for Chuwi Hi10 Max.
2024-09-14 11:06:38 +02:00
Lennart Poettering
3f49d58920
dns-domain: add test case from #34399
2024-09-13 18:03:17 +02:00
Lennart Poettering
1e1661c5d2
dns-domain: validate dns domain name max size based on unescaped, not escaped size
...
Otherwise we'll consider various domains invalid that really shouldn't
be considered invalid.
Fixes : #34399
2024-09-13 18:02:54 +02:00
Lennart Poettering
dc8ed83892
dns-domain: follow our current variable naming style
2024-09-13 18:00:38 +02:00
Luca Boccassi
00f546e25e
core: do not fail if ignorable img.v/ vpick dir is empty
...
If the vpick directory is configured to be ignored if missing, do not
fail and just skip ahead.
Follow-up for 5e79dd96a8
Follow-up for 622efc544d
2024-09-13 17:32:00 +02:00
Lennart Poettering
831ad06bf5
update TODO
2024-09-13 17:12:28 +02:00
Lennart Poettering
d7a6bb9891
tree-wide: make sigprocmask() changes more automatic
...
This tries to get rid of most manual sigprocmask() changes, in favour
of:
1. The SD_EVENT_SIGNAL_PROCMASK flag to sd_event_add_signal()
2. The sd_event_set_signal_exit() call for handling SIGTERM/SIGINT
3. Move masking of SIGWINCH into ptyfwd, out of nspawn/vmspawn/run
And while we are at it get rid of a bunch of event source fields whose
lifetime is bound to the sd_event object they belong to anyway, and make
use of the "floating" event source feature of sd-event instead.
2024-09-13 17:12:28 +02:00
Luca Boccassi
a7af35f1d4
Merge pull request #34402 from keszybz/notes-readme
...
Add examples not package/dlopen notes
2024-09-13 15:19:56 +02:00
Zbigniew Jędrzejewski-Szmek
2e1f83d1ab
docs/ELF_DLOPEN_METADATA: add detailed example
2024-09-13 14:53:17 +02:00