Follow-up to https://github.com/dracut-ng/dracut-ng/pull/1158 .
Fix storage test case for zfs.
CC="${CC:-cc}"
PKG_CONFIG="${PKG_CONFIG:-pkg-config}"
+# set hostonly by default
+configprofile="${configprofile:-hostonly}"
+
# Little helper function for reading args from the commandline.
# it automatically handles -a b and -a=b variants, and returns 1 if
# we need to shift $3.
-a "lvm" \
$(if command -v mdadm > /dev/null; then echo "-a mdraid"; fi) \
$(if command -v cryptsetup > /dev/null; then echo "-a crypt"; fi) \
- $(if [ "$TEST_FSTYPE" = "zfs" ]; then echo "-a zfs"; else echo "--add-drivers ${TEST_FSTYPE}"; fi) \
+ --add-drivers "${TEST_FSTYPE}" \
-i "/tmp/crypttab" "/etc/crypttab" \
-i "/tmp/key" "/etc/key"
}