summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <pks@pks.rocks>2020-02-23 13:20:10 +0100
committerPatrick Simianer <pks@pks.rocks>2020-02-23 13:20:10 +0100
commit9df8ad65ff93bae3ffc38c53a9441f908e71def8 (patch)
tree5a0636d1da96e7a44f8096d81aa585e2fbb83d4e
parent67c540b631c6475970631594e8b4ac1a7b9dd95c (diff)
upgrade-gentoo: rm obsolete stuff
-rwxr-xr-xupgrade-gentoo30
1 files 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