skup boot flag check

This commit is contained in:
rootzoll
2025-01-13 22:21:11 +01:00
parent 7fe27f136b
commit 4c9cc7b8f3

View File

@@ -693,10 +693,6 @@ if [ "$1" = "setup" ]; then
parted /dev/${setupDevice} --script set 1 boot on parted /dev/${setupDevice} --script set 1 boot on
parted /dev/${setupDevice} --script set 1 esp on parted /dev/${setupDevice} --script set 1 esp on
isFlagSetBOOT=$(parted /dev/${setupDevice} --script print | grep -c 'fat32.*boot') isFlagSetBOOT=$(parted /dev/${setupDevice} --script print | grep -c 'fat32.*boot')
if [ ${isFlagSetBOOT} -eq 0 ]; then
echo "error='failed to set BOOT flag'"
exit 1
fi
isFlagSetESP=$(parted /dev/${setupDevice} --script print | grep -c 'fat32.*esp') isFlagSetESP=$(parted /dev/${setupDevice} --script print | grep -c 'fat32.*esp')
if [ ${isFlagSetESP} -eq 0 ]; then if [ ${isFlagSetESP} -eq 0 ]; then
echo "error='failed to set ESP flag'" echo "error='failed to set ESP flag'"