From 5b2a02e77f3e4074b4594033b97aa6cfbfcfc1c8 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Wed, 21 Sep 2016 08:13:39 +0200 Subject: upgrade-gentoo: use bigger tmp dir --- upgrade-gentoo | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'upgrade-gentoo') diff --git a/upgrade-gentoo b/upgrade-gentoo index af56971..7e6933a 100755 --- a/upgrade-gentoo +++ b/upgrade-gentoo @@ -1,5 +1,12 @@ #!/bin/zsh +if grep -qs '/media/dock' /proc/mounts; then + mkdir /media/dock/tmp + chmod 777 /media/dock/tmp +else + echo "External disk not mounted, exiting." + exit +fi cd /usr rsync -avv portage/ portage_/ umount portage @@ -22,4 +29,5 @@ mksquashfs portage portage.squashfs -comp xz rm -rf /usr/portage mkdir /usr/portage mount portage +rm -r /media/dock/tmp -- cgit v1.2.3