move linux image installation back to bottom

master
lub 5 years ago
parent e376a620ef
commit 0799dfccea

@ -34,9 +34,6 @@ mdadm --examine --scan | perl -pe 's/.*\/dev\/md\/?([0-9]+) .*UUID\=(.+?) .*/ARR
# concat user keys for cryptsetup unlocking at boot # concat user keys for cryptsetup unlocking at boot
cat /hardware-setup/authorized_keys/* > /etc/dropbear-initramfs/authorized_keys cat /hardware-setup/authorized_keys/* > /etc/dropbear-initramfs/authorized_keys
# after cryptsetup, mdadm, ... because of update-initramfs
apt-get -y install linux-image-amd64
# 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
@ -58,6 +55,9 @@ sed -i "s/%root_uuid%/${root_uuid}/" /etc/crypttab
sed -i "s/%boot_uuid%/${boot_uuid}/" /etc/fstab sed -i "s/%boot_uuid%/${boot_uuid}/" /etc/fstab
sed -i "s/%esp_uuid%/${esp_uuid}/" /etc/fstab sed -i "s/%esp_uuid%/${esp_uuid}/" /etc/fstab
# after cryptsetup, mdadm, ... because of update-initramfs
apt-get -y install linux-image-amd64
### networking ### networking

Loading…
Cancel
Save