From 75f77b04a128096b661018df18539b6fc6c1a278 Mon Sep 17 00:00:00 2001 From: lub Date: Thu, 30 Jan 2020 16:54:20 +0100 Subject: [PATCH] remove update-grub --- post-debootstrap-installer.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/post-debootstrap-installer.sh b/post-debootstrap-installer.sh index 13c3450..54725d5 100755 --- a/post-debootstrap-installer.sh +++ b/post-debootstrap-installer.sh @@ -37,11 +37,9 @@ cat /hardware-setup/authorized_keys/* > /etc/dropbear-initramfs/authorized_keys # install grub if [ -d /sys/firmware/efi ]; then apt-get -y install grub-efi-amd64 - 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"