fix: sleep at a different spot

This commit is contained in:
Peter Šurda 2021-03-02 22:15:19 +01:00
parent 390e60e1e5
commit 6ff02db2d2
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,6 @@ function setup_drive
until [ -b "$drive"1 ] || [ -b "$drive"p1 ]; do
sleep 1
done
sleep 5
}
function rename_partition

View File

@ -8,7 +8,7 @@ function dev_from_partnum()
if [ ! -b "$partition" ]; then
partition="$drive"p"$partnum"
if [ ! -b "$partition" ]; then
echo "Can't find first partition for \"$drive\""
echo "Can't find ${partnum}-th partition for \"$drive\""
exit 1
fi
@ -49,6 +49,7 @@ function install_syslinux()
dd bs=440 count=1 conv=notrunc \
if=/usr/lib/syslinux/mbr/gptmbr.bin of="$drive"
sleep 5
dev_from_partnum "$drive" 1
syslinux "$partition"