Make sure if /lib/ is included in libdirs when needed.
This change is required for multipath dracut module to work properly
on Debian/Ubuntu based distributions.
&& [[ -d $dracutsysrootdir/lib64 ]]; then
libdirs+=" /lib64"
[[ -d $dracutsysrootdir/usr/lib64 ]] && libdirs+=" /usr/lib64"
- else
+
+ fi
+
+ if [[ -d $dracutsysrootdir/lib ]]; then
libdirs+=" /lib"
[[ -d $dracutsysrootdir/usr/lib ]] && libdirs+=" /usr/lib"
fi
grep -F -a -m 1 ID_FS_UUID "$TESTDIR"/marker.img > "$TESTDIR"/luks.uuid
- # TODO switch back to -a from -m after https://github.com/dracut-ng/dracut-ng/issues/685 is fixed, otherwise this test fails on Ubuntu
test_dracut \
- -m "resume dracut-systemd systemd-ac-power systemd-battery-check systemd-bsod systemd-coredump systemd-creds systemd-cryptsetup systemd-integritysetup systemd-ldconfig systemd-pcrphase systemd-pstore systemd-repart systemd-sysext systemd-veritysetup" \
+ -a "resume dracut-systemd systemd-ac-power systemd-battery-check systemd-bsod systemd-coredump systemd-creds systemd-cryptsetup systemd-integritysetup systemd-ldconfig systemd-pcrphase systemd-pstore systemd-repart systemd-sysext systemd-veritysetup" \
--add-drivers "btrfs" \
"$TESTDIR"/initramfs.testing