summaryrefslogtreecommitdiffstats
path: root/modules.d/01systemd-sysext/module-setup.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 14:01:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 14:01:35 +0000
commite6f2eaf47a177a8eca054d1d70a1b6287e8c3521 (patch)
treec5719e819a9e37df4b54affd61438f382ec38a8f /modules.d/01systemd-sysext/module-setup.sh
parentAdding upstream version 060+5. (diff)
downloaddracut-e6f2eaf47a177a8eca054d1d70a1b6287e8c3521.tar.xz
dracut-e6f2eaf47a177a8eca054d1d70a1b6287e8c3521.zip
Adding upstream version 102.upstream/102
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'modules.d/01systemd-sysext/module-setup.sh')
-rwxr-xr-xmodules.d/01systemd-sysext/module-setup.sh22
1 files changed, 18 insertions, 4 deletions
diff --git a/modules.d/01systemd-sysext/module-setup.sh b/modules.d/01systemd-sysext/module-setup.sh
index b95a480..381e339 100755
--- a/modules.d/01systemd-sysext/module-setup.sh
+++ b/modules.d/01systemd-sysext/module-setup.sh
@@ -26,20 +26,34 @@ depends() {
# Install the required file(s) and directories for the module in the initramfs.
install() {
+ # It's intended to work only with raw binary disk images contained in
+ # regular files, but not with directory trees.
+
inst_multiple -o \
- "/usr/lib/extensions/*" \
+ "/usr/lib/confexts/*.raw" \
+ "/var/lib/confexts/*.raw" \
+ "/var/lib/extensions/*.raw" \
+ "/etc/extension-release.d/extension-release.*" \
"/usr/lib/extension-release.d/extension-release.*" \
+ "$systemdsystemunitdir"/systemd-confext.service \
+ "$systemdsystemunitdir/systemd-confext.service.d/*.conf" \
"$systemdsystemunitdir"/systemd-sysext.service \
"$systemdsystemunitdir/systemd-sysext.service.d/*.conf" \
- systemd-sysext
+ systemd-confext systemd-sysext
# Enable systemd type unit(s)
- $SYSTEMCTL -q --root "$initdir" enable systemd-sysext.service
+ for i in \
+ systemd-confext.service \
+ systemd-sysext.service; do
+ $SYSTEMCTL -q --root "$initdir" enable "$i"
+ done
# Install the hosts local user configurations if enabled.
if [[ $hostonly ]]; then
inst_multiple -H -o \
- "/etc/extensions/*" \
+ "/etc/extensions/*.raw" \
+ "$systemdsystemconfdir"/systemd-confext.service \
+ "$systemdsystemconfdir/systemd-confext.service.d/*.conf" \
"$systemdsystemconfdir"/systemd-sysext.service \
"$systemdsystemconfdir/systemd-sysext.service.d/*.conf"
fi