Skip to content

Commit 4e85874

Browse files
joshuacov1johannbg
authored andcommitted
fix(base): do not change the provided UUID
During boot dracut parses the provided UUID to lower case and thus starts an endless loop wating for the devise to appear. The device is actually mapped correctly by the kernel (which doesn't tweak the UUID) but because we are waiting for a name with lower charachters the expeted device never appers which drops us at the emergency shell leaving the system unbootable. This happens especially on nfts/fat filesystems because technically those don't have a UUID but searial numbers which are used by the linux tools as UUID.
1 parent 813577e commit 4e85874

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: modules.d/99base/dracut-lib.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -594,10 +594,10 @@ label_uuid_to_dev() {
594594
echo "/dev/disk/by-partlabel/$(echo "${_dev#PARTLABEL=}" | sed 's,/,\\x2f,g;s, ,\\x20,g')"
595595
;;
596596
UUID=*)
597-
echo "/dev/disk/by-uuid/$(echo "${_dev#UUID=}" | tr "[:upper:]" "[:lower:]")"
597+
echo "/dev/disk/by-uuid/${_dev#UUID=}"
598598
;;
599599
PARTUUID=*)
600-
echo "/dev/disk/by-partuuid/$(echo "${_dev#PARTUUID=}" | tr "[:upper:]" "[:lower:]")"
600+
echo "/dev/disk/by-partuuid/${_dev#PARTUUID=}"
601601
;;
602602
*)
603603
echo "$_dev"

0 commit comments

Comments
 (0)