From 9e4fc3b35c786e19a980257c989b1b63cdb3c45b Mon Sep 17 00:00:00 2001 From: sean Date: Wed, 10 Jul 2019 01:33:29 -0700 Subject: [PATCH] tweaks --- setup.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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