]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test(STORAGE): initialize global variables
authorBenjamin Drung <benjamin.drung@canonical.com>
Wed, 11 Jun 2025 18:42:07 +0000 (20:42 +0200)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Wed, 30 Jul 2025 12:29:58 +0000 (08:29 -0400)
Initialize the global variables in `test/TEST-20-STORAGE/test.sh` to
make the test work with `set -u`.

test/TEST-20-STORAGE/test.sh

index 8ed05104d73de3b009ca63a6230896024a86b27c..9e79496e1fb0e7f8b783c4cd8839d880f77cb4f4 100755 (executable)
@@ -10,6 +10,9 @@ test_check() {
     (command -v zfs || (command -v lvm && command -v "mkfs.$TEST_FSTYPE")) &> /dev/null
 }
 
+USE_LVM=
+HAVE_RAID=
+HAVE_CRYPT=
 if [ "$TEST_FSTYPE" != "zfs" ] && [ "$TEST_FSTYPE" != "btrfs" ]; then
     # test fips mode
     [ -f /usr/share/crypto-policies/default-fips-config ] && TEST_KERNEL_CMDLINE+=" fips=1 rd.fips.skipkernel boot=LABEL=dracut "