From ebb64e71cf7c0b01c7ef3a6d5b193b33d82ff1c7 Mon Sep 17 00:00:00 2001 From: terem42 <9478806+terem42@users.noreply.github.com> Date: Sun, 15 Oct 2023 19:33:31 +0200 Subject: [PATCH] update --- hetzner-ubuntu20-zfs-setup.sh | 2 +- hetzner-ubuntu22-zfs-setup.sh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/hetzner-ubuntu20-zfs-setup.sh b/hetzner-ubuntu20-zfs-setup.sh index f1e05bc..709b5f6 100644 --- a/hetzner-ubuntu20-zfs-setup.sh +++ b/hetzner-ubuntu20-zfs-setup.sh @@ -738,7 +738,7 @@ chroot_execute "echo options zfs zfs_arc_max=$((v_zfs_arc_max_mb * 1024 * 1024)) echo "======= setting up grub ==========" chroot_execute "echo 'grub-pc grub-pc/install_devices_empty boolean true' | debconf-set-selections" chroot_execute "DEBIAN_FRONTEND=noninteractive apt install --yes grub-pc" -chroot_execute "grub-install ${v_selected_disks[0]}" +chroot_execute "grub-install --recheck ${v_selected_disks[0]}" chroot_execute "sed -i 's/#GRUB_TERMINAL=console/GRUB_TERMINAL=console/g' /etc/default/grub" chroot_execute "sed -i 's|GRUB_CMDLINE_LINUX_DEFAULT=.*|GRUB_CMDLINE_LINUX_DEFAULT=\"net.ifnames=0\"|' /etc/default/grub" diff --git a/hetzner-ubuntu22-zfs-setup.sh b/hetzner-ubuntu22-zfs-setup.sh index 833a02d..fd9594e 100644 --- a/hetzner-ubuntu22-zfs-setup.sh +++ b/hetzner-ubuntu22-zfs-setup.sh @@ -737,7 +737,6 @@ chroot_execute "echo options zfs zfs_arc_max=$((v_zfs_arc_max_mb * 1024 * 1024)) echo "======= setting up grub ==========" chroot_execute "echo 'grub-pc grub-pc/install_devices_empty boolean true' | debconf-set-selections" -chroot_execute "DEBIAN_FRONTEND=noninteractive apt install --yes grub-legacy" chroot_execute "DEBIAN_FRONTEND=noninteractive apt install --yes grub-pc" chroot_execute "grub-install --recheck ${v_selected_disks[0]}"