diff --git a/setup.sh b/setup.sh index 3d231ea..0acf715 100644 --- a/setup.sh +++ b/setup.sh @@ -210,10 +210,10 @@ echo "mount /boot/efi" >> /mnt/setup-chroot.sh echo "apt install -y grub-efi-amd64-signed shim-signed" >> /mnt/setup-chroot.sh i="2" -for disk in `echo "$disks" | -tail -n2`; do - echo "dd if=/dev/disk/by-id/${firstdisk}-part2 of=/dev/disk/by-id/${disk}-part2" >> /mnt/setup-chroot.sh - echo "efibootmgr -c -g -d /dev/disk/by-id/${disk} -p 3 -L "ubuntu-$i" -l '\EFI\ubuntu\grubx64.efi'" >> /mnt/setup-chroot.sh - i=$((i + 1)) +for disk in `echo "$disks" | tail -n+2`; do + echo "dd if=/dev/disk/by-id/${firstdisk}-part2 of=/dev/disk/by-id/${disk}-part2" >> /mnt/setup-chroot.sh + echo "efibootmgr -c -g -d /dev/disk/by-id/${disk} -p 3 -L "ubuntu-$i" -l '\EFI\ubuntu\grubx64.efi'" >> /mnt/setup-chroot.sh + i=$((i + 1)) done echo "echo 'root:${rootpassword}' | chpasswd" >> /mnt/setup-chroot.sh