]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test: remove fallback for id-name in qemu_add_drive
authorBenjamin Drung <benjamin.drung@canonical.com>
Tue, 27 Jan 2026 21:36:19 +0000 (22:36 +0100)
committerLaszlo <laszlo.gombos@gmail.com>
Tue, 27 Jan 2026 23:12:41 +0000 (18:12 -0500)
The documentation for `qemu_add_drive` says that `id-name` must be
specified and all consumers specify a name. So drop the fallback for
this parameter.

test/test-functions

index bf2ecfa2c294bd0acfae3af37e807649b53f8911..ab457b93aa10ea3ba0780aa3e41ae62819213d49 100644 (file)
@@ -222,7 +222,7 @@ inst_init() {
 qemu_add_drive() {
     local index=${!1}
     local file=$3
-    local name=${4:-$index}
+    local name=$4
     local size=${5:-0}
     local bootindex=${6-}