Skip to content

Commit 1586af0

Browse files
berrangeLaszloGombos
authored andcommitted
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é <[email protected]>
1 parent bddffed commit 1586af0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules.d/01systemd-repart/module-setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ depends() {
2525
install() {
2626

2727
inst_multiple -o \
28-
"$libdir/repart.d/*.conf" \
28+
"/usr/lib/repart.d/*.conf" \
2929
"$systemdsystemunitdir"/systemd-repart.service \
3030
"$systemdsystemunitdir"/initrd-root-fs.target.wants/systemd-repart.service \
3131
systemd-repart

0 commit comments

Comments
 (0)