From: Daniel P. Berrangé Date: Tue, 17 Oct 2023 16:42:13 +0000 (+0100) Subject: fix(systemd-repart): correct undefined $libdir X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1586af098fb17f7565d1699953e4e4b536304089;p=thirdparty%2Fdracut.git fix(systemd-repart): correct undefined $libdir Nothing in dracut appears to define the '$libdir' environment variable when module scripts are being run. As a result when the 01-systemd-repart module script runs, it fails to copy any of the config files into the initrd. Replace it with '/usr/lib' which reflects where systemd-repart expects its global config files. Signed-off-by: Daniel P. Berrangé --- diff --git a/modules.d/01systemd-repart/module-setup.sh b/modules.d/01systemd-repart/module-setup.sh index ed1ddcfd2..19b7e734f 100755 --- a/modules.d/01systemd-repart/module-setup.sh +++ b/modules.d/01systemd-repart/module-setup.sh @@ -25,7 +25,7 @@ depends() { install() { inst_multiple -o \ - "$libdir/repart.d/*.conf" \ + "/usr/lib/repart.d/*.conf" \ "$systemdsystemunitdir"/systemd-repart.service \ "$systemdsystemunitdir"/initrd-root-fs.target.wants/systemd-repart.service \ systemd-repart