|
|
@ -38,9 +38,17 @@ cat /hardware-setup/authorized_keys/* > /etc/dropbear-initramfs/authorized_keys
|
|
|
|
apt-get -y install linux-image-amd64
|
|
|
|
apt-get -y install linux-image-amd64
|
|
|
|
|
|
|
|
|
|
|
|
# install grub
|
|
|
|
# install grub
|
|
|
|
apt-get -y install grub-efi-amd64
|
|
|
|
if [ -d /sys/firmware/efi ]; then
|
|
|
|
update-grub
|
|
|
|
apt-get -y install grub-efi-amd64
|
|
|
|
grub-install --target=x86_64-efi --efi-directory=/boot/efi/ --bootloader-id=GRUB
|
|
|
|
update-grub
|
|
|
|
|
|
|
|
grub-install
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
apt-get -y install grub-pc
|
|
|
|
|
|
|
|
update-grub
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
root_disk="/dev/$(lsblk -no pkname $(cryptsetup status root-unlocked | grep device | perl -pe 's#.*device.* (.*)#$1#') | sort | head -n1)"
|
|
|
|
|
|
|
|
grub-install "$root_disk"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# edit uuids in fstab
|
|
|
|
# edit uuids in fstab
|
|
|
|
root_uuid=$(blkid --output value "/dev/mapper/root-unlocked" | head -n1)
|
|
|
|
root_uuid=$(blkid --output value "/dev/mapper/root-unlocked" | head -n1)
|
|
|
|