grep -F -a -m 1 ID_FS_UUID "$TESTDIR"/marker.img > "$TESTDIR"/luks.uuid
+ # TODO enable systemd-bsod for Gentoo
+
test_dracut \
- -m "dracut-systemd systemd-ac-power systemd-coredump systemd-creds systemd-cryptsetup systemd-integritysetup systemd-ldconfig systemd-pcrphase systemd-pstore systemd-repart systemd-sysext systemd-veritysetup" \
+ -m "resume dracut-systemd systemd-ac-power 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
+
+ if command -v mkinitcpio &> /dev/null; then
+ find "$TESTDIR"/initrd/dracut.*/initramfs/usr/lib/systemd/system/ -printf "%f\n" | sort | uniq > systemd-dracut
+ mkinitcpio -k "$KVERSION" --builddir "$TESTDIR" --save -A systemd
+ find "$TESTDIR"/mkinitcpio.*/root/usr/lib/systemd/system/ -printf "%f\n" | sort | uniq > systemd-mkinitcpio
+ echo "systemd units included in initrd from mkinitcpio but not from dracut"
+ diff systemd-dracut systemd-mkinitcpio | grep '> ' || :
+ fi
}
# shellcheck disable=SC1090