From 5911a9b999610650ef1b35fc36d8d7286c4427d7 Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Mon, 4 Mar 2024 14:22:34 -0500 Subject: [PATCH] pentoo-updater.sh: update grub with kernel_only --- scripts/pentoo-updater.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/pentoo-updater.sh b/scripts/pentoo-updater.sh index 118061fd5..f58c6fd62 100755 --- a/scripts/pentoo-updater.sh +++ b/scripts/pentoo-updater.sh @@ -707,11 +707,14 @@ umount_boot() { mount_boot main_checks -if [ -z "${KERNEL_ONLY}" ]; then +if [ -z "${KERNEL_ONLY:-}" ]; then main_upgrades else emerge --update --newuse --oneshot --changed-deps --newrepo portage || safe_exit - emerge --deep --update virtual/linux-sources sys-kernel/genkernel sys-kernel/linux-firmware sys-firmware/intel-microcode --oneshot || safe_exit + if [ -n "$(portageq match / 'sys-boot/grub')" ]; then + maybe_grub="sys-boot/grub" + fi + emerge --update --newuse --oneshot --changed-deps --newrepo --newuse "${maybe_grub:-}" virtual/linux-sources sys-kernel/genkernel sys-kernel/linux-firmware sys-firmware/intel-microcode || safe_exit fi #we need to do the clean BEFORE we drop the extra flags otherwise all the packages we just built are removed