|
|
@ -37,11 +37,9 @@ 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
|
|
|
|
update-grub
|
|
|
|
|
|
|
|
grub-install
|
|
|
|
grub-install
|
|
|
|
else
|
|
|
|
else
|
|
|
|
apt-get -y install grub-pc
|
|
|
|
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)"
|
|
|
|
root_disk="/dev/$(lsblk -no pkname $(cryptsetup status root-unlocked | grep device | perl -pe 's#.*device.* (.*)#$1#') | sort | head -n1)"
|
|
|
|
grub-install "$root_disk"
|
|
|
|
grub-install "$root_disk"
|
|
|
|