This commit is contained in:
rootzoll 2025-01-19 00:09:54 +01:00
parent 8fdfa6c777
commit c9c02b0c42

View File

@ -929,6 +929,8 @@ if [ "$1" = "kill-boot" ]; then
bootPartition=""
partitionNumber=""
for partNumber in $(parted -s "/dev/${device}" print | grep "^ *[0-9]" | awk '{print $1}'); do
echo "# checking /dev/${device}${partNumber}"
blkid "/dev/${device}${partNumber}"
if blkid "/dev/${device}${partNumber}" | grep -q "TYPE=\"vfat\"" && \
parted "/dev/${device}" print | grep "^ *${partNumber}" | grep -q "boot\|esp"; then
bootPartition="${device}${partNumber}"