From: José María Fernández Date: Fri, 17 Sep 2021 21:53:46 +0000 (+0200) Subject: fix(base): add default device choice X-Git-Tag: 056~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8c18c9f7f5ed94898f70e9ff5a5f94a815a2b49;p=thirdparty%2Fdracut.git fix(base): add default device choice when the device is no one of the previous patterns, substitute the empty default by the input, to return the same input --- diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index dc94e93fb..2a5b536d8 100755 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -599,6 +599,9 @@ label_uuid_to_dev() { PARTUUID=*) echo "/dev/disk/by-partuuid/$(echo "${_dev#PARTUUID=}" | tr "[:upper:]" "[:lower:]")" ;; + *) + echo "$_dev" + ;; esac }