From e57e8f020fa9c5b5d26c27fa31351a5a96cc906c Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 17 Apr 2026 10:54:19 +0100 Subject: fix: use blkid -s UUID for reliable UUID extraction in create-efi.sh The previous 'cut -f 2 -d " "' parsing was fragile and produced incorrect results depending on blkid output format. --- create-efi.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/create-efi.sh b/create-efi.sh index 2c4c3d2..9a72263 100755 --- a/create-efi.sh +++ b/create-efi.sh @@ -17,7 +17,7 @@ printf "Root partition [sda2]: " && read -r root_partition if [ -z "$root_partition" ]; then root_partition='sda2' fi -root_uuid=$(blkid /dev/"$root_partition" | cut -f 2 -d " ") +root_uuid="UUID=$(blkid -s UUID -o value /dev/"$root_partition")" printf "Kernel name [linux]: " && read -r kernel_name if [ -z "$kernel_name" ]; then @@ -40,7 +40,6 @@ printf "label [archlinux]: " && read -r label if [ -z "$label" ]; then label='archlinux' fi - rel_path="" rel_path2="" if [ "$esp" = "efi" ]; then -- cgit v1.2.3-70-g09d2