From e8c18c9f7f5ed94898f70e9ff5a5f94a815a2b49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Mar=C3=ADa=20Fern=C3=A1ndez?= Date: Fri, 17 Sep 2021 23:53:46 +0200 Subject: [PATCH] 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 --- modules.d/99base/dracut-lib.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index dc94e93fbe..2a5b536d8b 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 }