Skip to content

Commit

Permalink
fix(systemd-repart): correct undefined $libdir
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
berrange authored and LaszloGombos committed Oct 30, 2023
1 parent bddffed commit 1586af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules.d/01systemd-repart/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1586af0

Please sign in to comment.