]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(systemd-repart): correct undefined $libdir
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 17 Oct 2023 16:42:13 +0000 (17:42 +0100)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Mon, 30 Oct 2023 13:36:07 +0000 (09:36 -0400)
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é <berrange@redhat.com>
modules.d/01systemd-repart/module-setup.sh

index ed1ddcfd27b807c5fa2e54a5b1c39e6748dbaa39..19b7e734f5d6099f4f15cce3813dc2fe24b35d1f 100755 (executable)
@@ -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