From c44323673d0b9c5ef3d99e5035f6b5e4ea04b4e7 Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Mon, 4 Mar 2024 14:17:33 -0500 Subject: [PATCH] pentoo-updater.sh: minor tweaks chown after setting git config update portage first even when doing kernel only --- scripts/pentoo-updater.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/pentoo-updater.sh b/scripts/pentoo-updater.sh index e1d3532dc..118061fd5 100755 --- a/scripts/pentoo-updater.sh +++ b/scripts/pentoo-updater.sh @@ -411,9 +411,6 @@ do_sync() { return fi - # People seem to break these permissions a lot, so just set them. it takes <3 seconds on my box - chown -R portage:portage "$(portageq get_repo_path / gentoo)" - chown -R portage:portage "$(portageq get_repo_path / pentoo)" if [ -f '/etc/gitconfig' ]; then if ! grep -q '/var/db/repos/pentoo' /etc/gitconfig; then git config --system --add safe.directory /var/db/repos/pentoo @@ -421,6 +418,9 @@ do_sync() { else git config --system --add safe.directory /var/db/repos/pentoo fi + # People seem to break these permissions a lot, so just set them. it takes <3 seconds on my box + chown -R portage:portage "$(portageq get_repo_path / gentoo)" + chown -R portage:portage "$(portageq get_repo_path / pentoo)" if ! emerge --sync; then if [ -e /etc/portage/repos.conf/pentoo.conf ] && grep -q pentoo.asc /etc/portage/repos.conf/pentoo.conf; then printf "Pentoo repo key incorrectly defined, fixing..." @@ -710,6 +710,7 @@ main_checks 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 fi