From 9df8ad65ff93bae3ffc38c53a9441f908e71def8 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 23 Feb 2020 13:20:10 +0100 Subject: upgrade-gentoo: rm obsolete stuff --- upgrade-gentoo | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/upgrade-gentoo b/upgrade-gentoo index 4f32d0d..548f34e 100755 --- a/upgrade-gentoo +++ b/upgrade-gentoo @@ -7,19 +7,12 @@ source $(dirname $0)/func.zsh check_root if [[ $HOST == "bogues" ]]; then - if grep -qs '/media/ext_sd' /proc/mounts; then - mount -o remount,exec,nouser,nousers /media/ext_sd - mkdir -p /media/ext_sd/tmp - chmod 777 /media/ext_sd/tmp - else - echo "External disk not mounted, exiting." - exit - fi - rsync -avv /usr/portage/ /usr/portage_/ - umount /usr/portage - rm -f /usr/portage.squashfs - rmdir /usr/portage - mv /usr/portage_ /usr/portage + # when using squashfs + #rsync -avv /usr/portage/ /usr/portage_/ + #umount /usr/portage + #rm -f /usr/portage.squashfs + #rmdir /usr/portage + #mv /usr/portage_ /usr/portage fi emaint --check all @@ -40,11 +33,10 @@ emerge @preserved-rebuild eclean -d distfiles if [[ $HOST == "bogues" ]]; then - mksquashfs /usr/portage /usr/portage.squashfs -comp xz - rm -rf /usr/portage - mkdir /usr/portage - mount /usr/portage - rm -r /media/ext_sd/tmp - mount -o remount,users,auto /media/ext_sd + # when using squashfs + #mksquashfs /usr/portage /usr/portage.squashfs -comp xz + #rm -rf /usr/portage + #mkdir /usr/portage + #mount /usr/portage fi -- cgit v1.2.3