]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
feat: set hostonly config by default in configure
authorJo Zzsi <jozzsicsataban@gmail.com>
Sat, 1 Mar 2025 12:46:53 +0000 (07:46 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Sun, 18 May 2025 10:40:18 +0000 (06:40 -0400)
Follow-up to https://github.com/dracut-ng/dracut-ng/pull/1158 .

Fix storage test case for zfs.

configure
test/TEST-20-STORAGE/test.sh

index 8a96633391f7e303d555832242704b88702e37f5..2ee0a1c2dc6af6f791f1abf99298686b26929eb9 100755 (executable)
--- a/configure
+++ b/configure
@@ -22,6 +22,9 @@ fi
 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.
index 5bb04d305e4a99fb99de6dc9cc947bbb18ab2cc8..c788cfa407248451c6ff0426e354640e6084ea4d 100755 (executable)
@@ -166,7 +166,7 @@ test_setup() {
         -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"
 }