tweaks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user