mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 13:02:21 +02:00
skup boot flag check
This commit is contained in:
@@ -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'"
|
||||||
|
Reference in New Issue
Block a user