diff options
| author | 2026-04-17 10:54:19 +0100 | |
|---|---|---|
| committer | 2026-04-17 10:54:19 +0100 | |
| commit | e57e8f020fa9c5b5d26c27fa31351a5a96cc906c (patch) | |
| tree | 5248d0d86dff0f3aa348908d94ff1b690f1b1807 | |
| parent | 1e5a0201da3979415566a4fce2ed55995263c1ae (diff) | |
| download | dotfiles-e57e8f020fa9c5b5d26c27fa31351a5a96cc906c.tar.gz dotfiles-e57e8f020fa9c5b5d26c27fa31351a5a96cc906c.tar.bz2 dotfiles-e57e8f020fa9c5b5d26c27fa31351a5a96cc906c.zip | |
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.
| -rwxr-xr-x | create-efi.sh | 3 |
1 files changed, 1 insertions, 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 |
