|
|
@ -38,12 +38,12 @@ cat /hardware-setup/authorized_keys/* > /etc/dropbear/initramfs/authorized_keys
|
|
|
|
# install grub
|
|
|
|
# install grub
|
|
|
|
if [ -d /sys/firmware/efi ]; then
|
|
|
|
if [ -d /sys/firmware/efi ]; then
|
|
|
|
apt-get -y install grub-efi-amd64
|
|
|
|
apt-get -y install grub-efi-amd64
|
|
|
|
|
|
|
|
|
|
|
|
grub-install
|
|
|
|
grub-install
|
|
|
|
else
|
|
|
|
else
|
|
|
|
apt-get -y install grub-pc
|
|
|
|
apt-get -y install grub-pc
|
|
|
|
|
|
|
|
|
|
|
|
boot_disk="/dev/$(lsblk --noheadings --output PKNAME $(findmnt --noheadings --output SOURCE /boot))"
|
|
|
|
grub-install "$(findmnt --noheadings --output SOURCE /boot)"
|
|
|
|
grub-install "$boot_disk"
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# edit uuids in fstab
|
|
|
|
# edit uuids in fstab
|
|
|
|