]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(base): add default device choice
authorJosé María Fernández <josemariafg@gmail.com>
Fri, 17 Sep 2021 21:53:46 +0000 (23:53 +0200)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Wed, 24 Nov 2021 12:17:27 +0000 (12:17 +0000)
when the device is no one of the previous patterns,
substitute the empty default by the input,
to return the same input

modules.d/99base/dracut-lib.sh

index dc94e93fbed5b853a91fc9e2de4bf0d2174ff2b2..2a5b536d8b10addb3b8ee60075ed20d2f0af5db4 100755 (executable)
@@ -599,6 +599,9 @@ label_uuid_to_dev() {
         PARTUUID=*)
             echo "/dev/disk/by-partuuid/$(echo "${_dev#PARTUUID=}" | tr "[:upper:]" "[:lower:]")"
             ;;
+        *)
+            echo "$_dev"
+            ;;
     esac
 }