Skip to content

Commit

Permalink
improve error handling for EFI uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
adrelanos committed Dec 7, 2023
1 parent 65e45e5 commit e11f706
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chroot-script
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,8 @@ EOF
fi

if [ -n "$EFI" ] ; then
# shellcheck disable=SC2086
echo "UUID=$(blkid -o value -s UUID $EFI) /boot/efi vfat umask=0077 0 1" >> /etc/fstab
UUID_EFI="$(blkid -o value -s UUID "$EFI")"
echo "UUID=$UUID_EFI /boot/efi vfat umask=0077 0 1" >> /etc/fstab
fi

cat >> /etc/fstab << EOF
Expand Down

0 comments on commit e11f706

Please sign in to comment.