From 72d72a059022f336e74249938bc0f15329109c00 Mon Sep 17 00:00:00 2001 From: lub Date: Sun, 14 Sep 2025 17:38:11 +0200 Subject: [PATCH] use more modern and reliable tools for boot disk --- post-debootstrap-installer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/post-debootstrap-installer.sh b/post-debootstrap-installer.sh index 13e88c2..39e0796 100755 --- a/post-debootstrap-installer.sh +++ b/post-debootstrap-installer.sh @@ -42,8 +42,8 @@ if [ -d /sys/firmware/efi ]; then else apt-get -y install grub-pc - boot_disk=$(mount | grep ' on /boot ' | cut -d' ' -f1) - grub-install "${boot_disk::-2}" + boot_disk="/dev/$(lsblk --noheadings --output PKNAME $(findmnt --noheadings --output SOURCE /boot))" + grub-install "$boot_disk" fi # edit uuids in fstab