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
master
José María Fernández 2021-09-17 23:53:46 +02:00 committed by Jóhann B. Guðmundsson
parent d5fd030cc2
commit e8c18c9f7f
1 changed files with 3 additions and 0 deletions

View File

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