Yu Watanabe [Sun, 15 May 2022 18:36:34 +0000 (03:36 +0900)]
meson: bump required version to 0.56.0
Yu Watanabe [Sun, 15 May 2022 18:22:33 +0000 (03:22 +0900)]
meson: bump required version to 0.55.0
Yu Watanabe [Sun, 15 May 2022 18:21:16 +0000 (03:21 +0900)]
meson: bump required version to 0.54.0
Zbigniew Jędrzejewski-Szmek [Mon, 12 Jun 2023 08:45:48 +0000 (10:45 +0200)]
meson: define _GNU_SOURCE as '1'
This changes the generated config.h file thusly:
-#define _GNU_SOURCE
+#define _GNU_SOURCE 1
Canonically, _GNU_SOURCE is just defined, without any value, but g++ defines
_GNU_SOURCE implicitly [1]. This causes a warning about a redefinition during
complilation of C++ programs after '-include config.h'. Our config attempts to
inject this (and a bunch of other arguments) into all compliations. But before
meson 0.54, flags for dependencies were not propagated correctly (*), and the C++
compilation was done without various flags (**). Once that was fixed, we started
getting a warning.
[1] http://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.predefined
(*) Actually, the changelog doesn't say anything. But it mentions various work
related to dependency propagation, and apparently this changes as a side
effect.
(**) -fno-strict-aliasing
-fstrict-flex-arrays=1
-fvisibility=hidden
-fno-omit-frame-pointer
-include config.h
This could be solved in various ways, but it'd require either making the
compilation command line longer, which we want to avoid for readability of the
build logs, or splitting the logic to define the args for C++ progs separately,
which would make our meson.build files more complicated. Changing the
definition to '1' also solves the issue (because apparently now we match the
implicit definition), and shouldn't have other effects. I checked compilation
with gcc and clang. Maybe on other systems this could cause problems. We can
revisit if people report issues.
Zbigniew Jędrzejewski-Szmek [Thu, 9 Mar 2023 09:35:05 +0000 (10:35 +0100)]
meson: stop using nested lists for sources
meson itself flattens the list when it is used in "sources:" field, but it
makes our own processing more complicated. I find it also a bit confusing.
Daan De Meyer [Wed, 7 Jun 2023 11:48:54 +0000 (13:48 +0200)]
Merge pull request #27629 from ddstreet/tpm2_verify_sym_params
Tpm2 verify sym params
Zbigniew Jędrzejewski-Szmek [Wed, 7 Jun 2023 11:32:11 +0000 (13:32 +0200)]
Merge pull request #27882 from DaanDeMeyer/repart-truncate
copy: Add COPY_TRUNCATE
Lennart Poettering [Wed, 7 Jun 2023 10:23:25 +0000 (12:23 +0200)]
resolved: add comment clarifying why we decompress DNS names when parsing SRV
Fixes: #22838
Lennart Poettering [Wed, 7 Jun 2023 10:47:09 +0000 (12:47 +0200)]
man: document which IP ports resolved listens on, and what for
Fixes: #23045
Zbigniew Jędrzejewski-Szmek [Wed, 7 Jun 2023 11:25:33 +0000 (13:25 +0200)]
Merge pull request #27885 from DaanDeMeyer/please-dont-make-me-write-more-openat-helpers
Add more openat like helper functions
Michal Sekletar [Wed, 31 May 2023 16:50:12 +0000 (18:50 +0200)]
pam: add call to pam_umask
Setting umask for user sessions via UMASK setting in /etc/login.defs is
a well-known feature. Let's make sure that user manager also runs with
this umask value.
Follow-up for
5e37d1930b41b24c077ce37c6db0e36c745106c7.
Thorsten Kukuk [Tue, 6 Jun 2023 12:52:22 +0000 (14:52 +0200)]
sd-login: add sd_session_get_leader interface
Daan De Meyer [Tue, 6 Jun 2023 19:36:09 +0000 (21:36 +0200)]
Merge pull request #27925 from DaanDeMeyer/repart-encrypt
repart: Do online encryption when loop devices are available
Lennart Poettering [Tue, 6 Jun 2023 07:29:51 +0000 (09:29 +0200)]
units: change TimeoutSec=0 to TimeoutSec=infinity
Follow-up for #27936
Let's also update a bunch of static unit files, matching what we just
did for the generators.
Luca Boccassi [Tue, 6 Jun 2023 17:22:45 +0000 (18:22 +0100)]
Merge pull request #27938 from keszybz/ukify-build-verb
Add 'ukify build' verb, expand tests
Zbigniew Jędrzejewski-Szmek [Tue, 6 Jun 2023 11:23:49 +0000 (13:23 +0200)]
ukify: add 'build' verb
The old syntax with linux + initrds as positional arguments is still accepted,
but a warning is emitted. We should remove the support for this after the
next release or so.
Adding a single verb by itself is not very useful, but opens the door to adding
other verbs.
Zbigniew Jędrzejewski-Szmek [Tue, 6 Jun 2023 11:03:41 +0000 (13:03 +0200)]
test_ukify: pass through path to addon stub
Without this, the tests would generally be skipped, since we haven't made a
release with the addon stub yet. But even if the file is there, we always want
to test the freshly-built item.
Zbigniew Jędrzejewski-Szmek [Tue, 6 Jun 2023 10:18:56 +0000 (12:18 +0200)]
test_ukify: no stinky root needed for signing
C.f.
b2efe286587e11e2aa4a6c7e4a2c15da3bb58a2a.
Zbigniew Jędrzejewski-Szmek [Mon, 5 Jun 2023 13:47:00 +0000 (15:47 +0200)]
ukify: simplify creation of parser
00e5933f57c6e336ebed18601299acc6855bb3c2 made all the positional arguments
optional, so let's take advantage of this to simplify variuos callers.
Daan De Meyer [Mon, 5 Jun 2023 11:15:04 +0000 (13:15 +0200)]
repart: Do online encryption when loop devices are available
Online encryption is much faster then offline encryption when using
cryptsetup. To take advantage of this, when loop devices are available,
let's use online encryption instead off offline encryption to encrypt
partitions.
The online encryption logic is the same logic as was removed in
48a09a8fff480aab9a68e95e95cc37f6b1438751, except that it's now
integrated with PartitionTarget to ensure that logic outside of
partition_target_encrypt() has to minimally change regardless of
whether we're doing online or offline encryption.
Daan De Meyer [Tue, 6 Jun 2023 13:01:37 +0000 (15:01 +0200)]
Merge pull request #27918 from yuwata/chase-filename
chase: handle root path more carefully in chase_and_open()
Daan De Meyer [Thu, 1 Jun 2023 12:59:59 +0000 (14:59 +0200)]
btrfs-util: Add btrfs_subvol_snapshot_at()
Daan De Meyer [Thu, 1 Jun 2023 12:52:56 +0000 (14:52 +0200)]
chattr-util: Make chattr_full() an openat() style function
Daan De Meyer [Thu, 1 Jun 2023 12:43:30 +0000 (14:43 +0200)]
btrfs-util: Add btrfs_subvol_set_read_only_at()
Daan De Meyer [Thu, 1 Jun 2023 12:36:47 +0000 (14:36 +0200)]
rm-rf: Add rm_rf_at()
Daan De Meyer [Thu, 1 Jun 2023 12:32:39 +0000 (14:32 +0200)]
btrfs-util: Add btrfs_subvol_remove_at()
We also remove btrfs_subvol_remove_fd() because btrfs_subvol_remove_at()
is more general.
Daan De Meyer [Fri, 2 Jun 2023 09:05:10 +0000 (11:05 +0200)]
test-chase: Add one more test for chase_and_openat()
Daan De Meyer [Fri, 2 Jun 2023 09:00:48 +0000 (11:00 +0200)]
chase: Allow passing NULL as the empty path to chaseat()
Per coding style, we should accept NULL as the empty path.
Daan De Meyer [Fri, 2 Jun 2023 08:55:24 +0000 (10:55 +0200)]
test-chase: Fix comment
Daan De Meyer [Thu, 1 Jun 2023 12:26:35 +0000 (14:26 +0200)]
fd-util: Add path_is_root_at()
A generalization of dir_fd_is_root() that allows passing a path
component.
Daan De Meyer [Thu, 1 Jun 2023 11:58:29 +0000 (13:58 +0200)]
btrfs-util: Add btrfs_is_subvol_at()
Daan De Meyer [Thu, 1 Jun 2023 11:57:58 +0000 (13:57 +0200)]
stat-util: Add is_fs_type_at()
Daan De Meyer [Thu, 1 Jun 2023 11:57:04 +0000 (13:57 +0200)]
stat-util: Follow coding style in xstatfsat()
Allow passing NULL to indicate the empty path per coding style.
Daan De Meyer [Thu, 1 Jun 2023 11:56:05 +0000 (13:56 +0200)]
fs-util: Allow passing NULL path to xopenat()
We recently codified in the coding style that for openat() style APIs,
an empty path can be passed both as the empty string and as NULL, so
let's make sure we follow that style in xopenat().
Daan De Meyer [Thu, 1 Jun 2023 11:42:39 +0000 (13:42 +0200)]
copy: Merge copy_directory() and copy_directory_fd() into copy_directory_at()
Let's merge these two into a single function that can handle both
variants and more.
Lennart Poettering [Tue, 6 Jun 2023 07:29:51 +0000 (09:29 +0200)]
generators: change TimeoutSec=0 to TimeoutSec=infinity
With these settings we intend to turn off timeouts for possibly
interactive/slow commands. The officially documented way to turn off the
time-outs is to setting them to infinity. So far we set them to zero
here though.
This lead to some confusiong, for example #18224. Let's fix this by
uniformly spelling out TimeoutSec=infinity.
This doesn't change behaviour. It just makes our generated files match
what we document, without relying on historic compat support.
Fixes: #18224
Frantisek Sumsal [Tue, 6 Jun 2023 09:18:50 +0000 (11:18 +0200)]
Merge pull request #27933 from mrc0mmand/selinux
test: a couple of TEST-06-SELINUX tweaks
Frantisek Sumsal [Tue, 6 Jun 2023 08:16:04 +0000 (10:16 +0200)]
man: document OnSuccessJobMode=
Introduced in
294446dcb9.
Luca Boccassi [Mon, 5 Jun 2023 21:48:06 +0000 (22:48 +0100)]
tests: fix shellcheck warnings
Dan Streetman [Fri, 17 Feb 2023 17:59:18 +0000 (12:59 -0500)]
tpm2: verify symmetric parms in tpm2_context_new()
This adds tpm2_get_capability_algs(), tpm2_supports_alg(), and
tpm2_test_parms(). These functions allow verifying that the TPM supports
specific algs and parameters.
When creating a new context, this checks if the TPM supports the symmetric algs
we use. If the TPM does not support the symmetric algs and parameters we
require, we log and return error.
Dan Streetman [Mon, 2 Jan 2023 01:19:12 +0000 (20:19 -0500)]
tpm2: add tpm2_get_capability(), tpm2_cache_capabilities(), tpm2_capability_pcrs()
This adds a function to query specific capabilities from the TPM. That is then
used in a function to query the allocation of PCRs in the TPM, i.e. which PCR
banks and indexes are available, and caches the PCR allocation when the TPM
context is created.
Frantisek Sumsal [Mon, 5 Jun 2023 20:41:46 +0000 (22:41 +0200)]
test: a couple of assorted cleanups
- sort binaries
- send stdout/stderr of the autorelabel service to console as well
Frantisek Sumsal [Mon, 5 Jun 2023 20:35:05 +0000 (22:35 +0200)]
test: load the SELinux module outside of the VM
Turns out we can, apart from just building the module, "shove" it into
the SELinux database in a chroot as well. This brings quite significant
time savings, as the SELinux db rebuild takes 2 - 5 minutes in a VM
without acceleration (and takes currently ~half of the runtime of the test
in the C8S job).
Frantisek Sumsal [Mon, 5 Jun 2023 20:32:27 +0000 (22:32 +0200)]
test: add a reasoning why we don't use the SELinux-provided units
Lennart Poettering [Mon, 5 Jun 2023 16:40:26 +0000 (18:40 +0200)]
cgls/cgtop: spell field/column "CGroup" rather than "Control Group"
In the documentation we usually spell the concept "control group".
Internally in code we usually call it "cgroup" or "CGroup". In systemctl output we
called the field "CGroup" so far, i.e. a capitalized version of the
internal name. This is of course very unsystematic. Let's clean this up
a bit: let's now say:
* in docs, continue to spell it out "control groups"
* in brief output call it "CGroup"
* internally call it "cgroup" or "CGroup"
Fixes: #14429
Yu Watanabe [Mon, 5 Jun 2023 18:34:59 +0000 (03:34 +0900)]
Merge pull request #27912 from mrc0mmand/cryptsetup-tests
test: add a couple more tests for systemd-cryptsetup
Luca Boccassi [Mon, 5 Jun 2023 18:11:41 +0000 (19:11 +0100)]
Merge pull request #27926 from DaanDeMeyer/repart-offline
repart: Add --offline argument
Simon Braunschmidt [Mon, 5 Jun 2023 11:49:45 +0000 (11:49 +0000)]
99-systemd.rules.in: guard systemd-backlight udev rules by ENABLE_BACKLIGHT
Linux kernel will, as documented in drivers/video/backlight/backlight.c,
report changes to a backlights brightness as a uevent (ACTION=change).
systemd-udev will consume the uevent, match on this rule and try to
activate the systemd-backlight service for the backlight. BUT when
systemd is not compiled with backlight support, this will lead to
failure that is reported in the journal.
Since the failure to activate systemd-backlight and subsequent failure
log entry happens on every backlight brightness change, we found the
resulting logspam during regular operation excessive and came up with
this patch to mitigate it.
The conditional is also extended to "*kbd_backlight" match, since
even though we did not investigate to see if the logspam would be
similar, the unconditional match to activate systemd-backlight here
would also not make sense when the feature is not compiled in.
Signed-off-by: Simon Braunschmidt <simon.braunschmidt@iba-group.com>
Frantisek Sumsal [Mon, 5 Jun 2023 14:54:31 +0000 (16:54 +0200)]
test: make sure we unmount /var late during shutdown
To avoid the "mountpoint is busy" error.
Frantisek Sumsal [Sun, 4 Jun 2023 12:44:42 +0000 (14:44 +0200)]
test: add a couple more tests for systemd-cryptsetup
Frantisek Sumsal [Sun, 4 Jun 2023 20:16:58 +0000 (22:16 +0200)]
test: make check_result_*() `set -e` friendly
Frantisek Sumsal [Sun, 4 Jun 2023 20:13:58 +0000 (22:13 +0200)]
test: use check_result_common()
The TEST-24 has been silently timing out for quite a while in the C8S
job, as the check_result_qemu() override lacked some error checks,
whoopsie.
Frantisek Sumsal [Sun, 4 Jun 2023 14:02:45 +0000 (16:02 +0200)]
cryptsetup: avoid calling strv_find() on a NULL pointer
When the header= option comes before any other type= defining one, we
trip over an assertion:
Jun 04 15:45:33 H testsuite-24.sh[752]: + systemctl start systemd-cryptsetup@detached.service
Jun 04 15:45:33 H systemd[1]: Starting systemd-cryptsetup@detached.service...
Jun 04 15:45:33 H systemd-cryptsetup[4641]: Assertion 'name' failed at src/basic/strv.c:21, function strv_find(). Aborting.
...
Jun 04 15:45:33 H systemd-coredump[4643]: Process 4641 (systemd-cryptse) of user 0 dumped core.
...
Stack trace of thread 4641:
#0 0x00007ff9256afe5c __pthread_kill_implementation (libc.so.6 + 0x8ce5c)
#1 0x00007ff92565fa76 raise (libc.so.6 + 0x3ca76)
#2 0x00007ff9256497fc abort (libc.so.6 + 0x267fc)
#3 0x00007ff926076047 log_assert_failed (libsystemd-shared-253.so + 0x276047)
#4 0x00007ff9260ab317 strv_find (libsystemd-shared-253.so + 0x2ab317)
#5 0x0000000000405927 parse_one_option (systemd-cryptsetup + 0x5927)
#6 0x0000000000407793 parse_options (systemd-cryptsetup + 0x7793)
#7 0x000000000040fa0c run (systemd-cryptsetup + 0xfa0c)
#8 0x000000000041137f main (systemd-cryptsetup + 0x1137f)
#9 0x00007ff92564a510 __libc_start_call_main (libc.so.6 + 0x27510)
#10 0x00007ff92564a5c9 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x275c9)
#11 0x0000000000403915 _start (systemd-cryptsetup + 0x3915)
ELF object binary architecture: AMD x86-64
Frantisek Sumsal [Sun, 4 Jun 2023 13:45:08 +0000 (15:45 +0200)]
test: clean up the test cleanup a bit
Frantisek Sumsal [Sun, 4 Jun 2023 13:33:24 +0000 (15:33 +0200)]
test: minor cleanup
No functional change.
Frantisek Sumsal [Mon, 5 Jun 2023 07:40:21 +0000 (09:40 +0200)]
test: make the data partition larger for the cryptsetup test
As we use it for /var and with the default 100 MiB there's not enough
space for the journal.
Frantisek Sumsal [Mon, 5 Jun 2023 07:39:51 +0000 (09:39 +0200)]
test: make the root/data partition size configurable per test
Frantisek Sumsal [Fri, 2 Jun 2023 19:10:08 +0000 (21:10 +0200)]
test: introduce test_require_bin() and use it
No functional change.
Frantisek Sumsal [Fri, 2 Jun 2023 18:56:12 +0000 (20:56 +0200)]
test: fix indentation
Frantisek Sumsal [Fri, 2 Jun 2023 18:28:41 +0000 (20:28 +0200)]
test: move TPM2-related setup stuff into test-functions
And hide it all behind $TEST_SETUP_SWTPM.
Zbigniew Jędrzejewski-Szmek [Thu, 1 Jun 2023 08:39:54 +0000 (10:39 +0200)]
ukify: make code pylint clean
The linter is imperfect, but it is useful as a very quick
check for typos and other silly mistakes. Add a few annotations
and do one small change to make it think the code is perfect.
Zbigniew Jędrzejewski-Szmek [Mon, 5 Jun 2023 14:07:19 +0000 (16:07 +0200)]
Merge pull request #27871 from yuwata/udevadm-verify-downgrade-style-issues
udevadm-verify: downgrade log level about style issues
Zbigniew Jędrzejewski-Szmek [Mon, 5 Jun 2023 14:03:57 +0000 (16:03 +0200)]
Merge pull request #27924 from poettering/low-battery-tool
ac-power: expose low battery state via systemd-ac-power
Frantisek Sumsal [Mon, 5 Jun 2023 08:47:21 +0000 (10:47 +0200)]
test: allow running only specified subtests/testcases
Useful when debugging, e.g.:
make -C test/TEST-74-AUX-UTILS clean setup run TEST_MATCH_SUBTEST=run
Resolves: #27914
Daan De Meyer [Mon, 5 Jun 2023 13:29:47 +0000 (15:29 +0200)]
test: Test --offline= in TEST-58-REPART
Instead of using a privileged and unprivileged user to test the
offline and online logic of systemd-repart, let's always run repart
as root and use the --offline= argument to specify repart to use
either the offline or online logic.
Lennart Poettering [Mon, 5 Jun 2023 09:04:54 +0000 (11:04 +0200)]
man: parition → partition typo fix
Follow-up for: #27848
Daan De Meyer [Mon, 5 Jun 2023 11:56:49 +0000 (13:56 +0200)]
repart: Add --offline argument
This allows the user to explicit configure whether loop devices
should be used to build the image or not.
Lennart Poettering [Mon, 5 Jun 2023 10:14:12 +0000 (12:14 +0200)]
ac-power: add --low switch to systemd-ac-power tool
This allows checking from shell scripts whether the system is in a low
battery state. It just exposed the code we anyway have in a directly
accessible way.
This is also very useful for testing things.
Lennart Poettering [Mon, 5 Jun 2023 10:12:03 +0000 (12:12 +0200)]
battery-util: be more careful when determining whether we are in a low battery state
Let's avoid assuming a low battery battery state if in doubt. That
means, handle errors reading battery state gracefully.
Lennart Poettering [Mon, 5 Jun 2023 09:56:31 +0000 (11:56 +0200)]
battery-util: move battery_is_discharging_and_low() to battery-util.[ch]
This moves a first batch of functions from sleep-config.[ch] over to
battery-util.[ch].
In the long run we should probably move even more stuff over, i.e.
anything that deals with the battery sysfs driver interface.
No code change.
Lennart Poettering [Mon, 5 Jun 2023 09:49:35 +0000 (11:49 +0200)]
battery-util: split out code that checks AC power state into its own .c/.h pair
No code change, just some splitting out of the relevant code from
udev-util.[ch].
This makes sense on its own, but is also prepartion to move the code
that checks for low battery state into battery-util.[ch], too.
Stefan Roesch [Tue, 28 Feb 2023 20:39:35 +0000 (12:39 -0800)]
add support for KSM
This adds support for KSM (kernel samepage merging). It adds a new
boolean parameter called MemoryKSM to enable the feature. The feature
can only be enabled with newer kernels.
Yu Watanabe [Mon, 5 Jun 2023 04:20:42 +0000 (13:20 +0900)]
chase: fix triggering assertion
Yu Watanabe [Mon, 5 Jun 2023 05:47:42 +0000 (14:47 +0900)]
chase: handle root path more carefully in chase_and_open()
chase_and_open() may be called with relative root path.
Yu Watanabe [Tue, 30 May 2023 09:58:00 +0000 (18:58 +0900)]
test: move intro() near DEFINE_TEST_MAIN_WITH_INTRO()
Yu Watanabe [Tue, 30 May 2023 09:47:48 +0000 (18:47 +0900)]
test: add more test cases about path_startswith()
jonathanmetzman [Mon, 5 Jun 2023 05:37:34 +0000 (01:37 -0400)]
ci: Report results from CIFuzz using SARIF
Upload results from CIFuzz using SARIF.
This will allow CIFuzz to report issues in the security tab.
This is a better UI than having to look through logs.
TODO(google/oss-fuzz#10452): Add proper descriptions of UBSAN bugs.
Gaël PORTAY [Mon, 5 Jun 2023 04:42:02 +0000 (06:42 +0200)]
path-util: fix typo in comment
The comment makes a reference to the function fchmod_path() but this
function does not exist in the source tree.
However, the function fchmod_opath() exists; it was introduced by the
commit
4dfaa528d451aa7926be4f1b4cf8d0ffe338421d.
As the comment tells, the function futimens_opath() introduced by the
commit
f25bff5eaf6881717e873f27c26f2e8264517c16 is similar to the
function fchmod_opath(); therefore, it should reference it.
This fixes the typo in the comment by referencing the proper function
fchmod_opath().
Yu Watanabe [Thu, 1 Jun 2023 01:10:00 +0000 (10:10 +0900)]
udev: downgrade log level about style issues
And add --no-style switch that make style issues not critical.
Yu Watanabe [Thu, 1 Jun 2023 02:48:09 +0000 (11:48 +0900)]
test: drop unnecessary copy of expected output
Yu Watanabe [Thu, 1 Jun 2023 01:06:59 +0000 (10:06 +0900)]
udev-rules: terminate log messages with period
Yu Watanabe [Sat, 3 Jun 2023 20:22:53 +0000 (05:22 +0900)]
Merge pull request #27907 from mrc0mmand/quick-test-tweaks
test: a couple of tweaks for recent CI fails
Frantisek Sumsal [Sat, 3 Jun 2023 15:54:46 +0000 (17:54 +0200)]
Merge pull request #27908 from weblate/weblate-systemd-master
Translations update from Fedora Weblate
김인수 [Sat, 3 Jun 2023 15:48:02 +0000 (17:48 +0200)]
po: Translated using Weblate (Korean)
Currently translated at 100.0% (193 of 193 strings)
Co-authored-by: 김인수 <simmon@nplob.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/ko/
Translation: systemd/main
Asier Sarasua Garmendia [Sat, 3 Jun 2023 15:48:02 +0000 (17:48 +0200)]
po: Translated using Weblate (Basque)
Currently translated at 16.5% (32 of 193 strings)
po: Added translation using Weblate (Basque)
Co-authored-by: Asier Sarasua Garmendia <asier.sarasua@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/eu/
Translation: systemd/main
Lennart Poettering [Sat, 3 Jun 2023 07:17:45 +0000 (09:17 +0200)]
umount: /usr/ should never be unmounted regardless of HAVE_SPLIT_USR or not
Whether we put some binaries in /bin or in /usr/bin should not have any
effect on unmounting during shutdown. Even if people split /usr/ off we
should not try to unmount it, no matter what as it is simply where
binaries are placed.
Frantisek Sumsal [Sat, 3 Jun 2023 11:38:29 +0000 (13:38 +0200)]
test: drop the --recursive=no test
As the outcome also depends on availability of the PID namespace, so
the test might (and does) unexpectedly pass in some environments.
Frantisek Sumsal [Sat, 3 Jun 2023 07:49:04 +0000 (09:49 +0200)]
test: ignore missing coverage in TEST-82-SOFTREBOOT
As we temporarily mount rootfs read-only there.
Adrian Vovk [Fri, 26 May 2023 04:47:47 +0000 (00:47 -0400)]
sysupdate.d: Add way to drop binaries into $BOOT
As described in the BLS, we should place binaries into the XBOOTLDR
directory if it is available, otherwise into the ESP. Thus, we might
need to put binaries into /boot or into /efi depending on the existence
of the XBOOTLDR partition.
With this change, we introduce a new PathRelativeTo= config option that
makes this functionality possible
Luca Boccassi [Fri, 2 Jun 2023 22:57:21 +0000 (23:57 +0100)]
Merge pull request #27904 from DaanDeMeyer/lsm
mkosi: Enable more options
Luca Boccassi [Fri, 2 Jun 2023 22:56:58 +0000 (23:56 +0100)]
Merge pull request #27903 from mrc0mmand/test-followups
test: a couple of systemd-{coredump,pstore,run} followups
Lennart Poettering [Fri, 2 Jun 2023 21:27:45 +0000 (23:27 +0200)]
Merge pull request #27435 from poettering/renew-reboot
pid1: add a new method of rebooting: userspace only under the name "soft-reboot"
Lennart Poettering [Fri, 2 Jun 2023 19:47:09 +0000 (21:47 +0200)]
Merge pull request #27896 from poettering/umount-detach-rework
shutdown: refactoring + tone down log message a bit
Lennart Poettering [Fri, 2 Jun 2023 19:46:50 +0000 (21:46 +0200)]
Merge pull request #27902 from poettering/round-up
add ROUND_UP() macro for rounding integer up to next multiple of some value
Lennart Poettering [Tue, 2 May 2023 10:39:59 +0000 (12:39 +0200)]
update TODO
Lennart Poettering [Wed, 3 May 2023 13:05:12 +0000 (15:05 +0200)]
test: add integration test for soft reboots incl. fdstore passing
Lennart Poettering [Wed, 3 May 2023 07:37:55 +0000 (09:37 +0200)]
test: disable SoftReboot() in dfuzzer test for now
As requested:
https://github.com/systemd/systemd/pull/27435#issuecomment-
1527810336
Lennart Poettering [Wed, 3 May 2023 08:33:01 +0000 (10:33 +0200)]
man: document the soft reboot operation
Lennart Poettering [Fri, 2 Jun 2023 15:51:37 +0000 (17:51 +0200)]
fstab-util: consider /run/nextroot/ among extrinsic mounts
This way we'll not add deps for the mount point that unmount it during
shutdown. This is similar as for /run/initramfs/ which we want to
transition into during shutdown.
This way we don't have to add "-o x-initrd.mount" to all bind mounts for
/run/nextroot anymore to make it survive the reboot, it will be implied.
Lennart Poettering [Fri, 2 Jun 2023 15:50:50 +0000 (17:50 +0200)]
mount-setup: exclude /run/nextroot/ from relabelling
Just like /run/initramfs/ the data in /run/nextroot/ should be a
self-contained OS tree, and not require labelling, hence don't.