]> git.ipfire.org Git - thirdparty/systemd.git/commit
sysupdate: include default component for feature-all 43154/head
authordongshengyuan <545258830@qq.com>
Sun, 26 Jul 2026 04:17:17 +0000 (12:17 +0800)
committerdongshengyuan <545258830@qq.com>
Sun, 26 Jul 2026 07:26:06 +0000 (15:26 +0800)
commitbbe99a925b92ac00f7539af953757ec838e1db60
tree47062dce64391ff3022ddf07e111ece5b593281d
parentb03503a1169ad925f2c4146fb8499375fe477790
sysupdate: include default component for feature-all

--component-all is documented to include the default component-less
installation. Do not drop it merely because the context operates on a
root/image, or because all its transfers are currently disabled by
features.

This lets --component-all --feature-all enable-feature write the
default component feature drop-ins instead of succeeding with no
components selected.

TEST-72-SYSUPDATE covers both all transfers disabled by features and
the same default component feature operation under --root=.

Repro: create a default feata.feature plus a transfer gated by feata,
then run:
build/systemd-sysupdate --root="$root" --component-all --feature-all enable-feature

Before: no drop-in was written.

Follow-up for: 4481661a75acc01b5d66aa36443a7b80b557e4ba
src/sysupdate/sysupdate.c
test/units/TEST-72-SYSUPDATE.sh