]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test(FULL-SYSTEMD): add test with rd.luks.name
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Mon, 8 Jul 2024 13:11:47 +0000 (09:11 -0400)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Mon, 8 Jul 2024 22:51:30 +0000 (18:51 -0400)
Arch wiki recommends this configuration and last release regressed
this configuration.

test/TEST-04-FULL-SYSTEMD/test.sh

index 842c3e9583ca68efefc88bc3078d2c7776bfce91..9b75398dc625c250a26830f5442b2a1a1a410656 100755 (executable)
@@ -49,7 +49,9 @@ test_run() {
     # shellcheck source=$TESTDIR/luks.uuid
     . "$TESTDIR"/luks.uuid
 
-    client_run "encrypted root" "root=LABEL=dracut_crypt rd.luks.uuid=$ID_FS_UUID rd.luks.key=/etc/key" || return 1
+    # luks
+    client_run "encrypted root with rd.luks.uuid" "root=LABEL=dracut_crypt rd.luks.uuid=$ID_FS_UUID rd.luks.key=/etc/key" || return 1
+    client_run "encrypted root with rd.luks.name" "root=/dev/mapper/crypt rd.luks.name=$ID_FS_UUID=crypt rd.luks.key=/etc/key" || return 1
     return 0
 }