diff options
author | Patrick Simianer <p@simianer.de> | 2016-09-21 08:13:39 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-09-21 08:13:39 +0200 |
commit | 5b2a02e77f3e4074b4594033b97aa6cfbfcfc1c8 (patch) | |
tree | e7faa8ebcf2d5170853ef513da5e8d1b1eb0eee0 | |
parent | 07909b4398a6db069f92916d300733819e2bbe43 (diff) |
upgrade-gentoo: use bigger tmp dir
-rwxr-xr-x | upgrade-gentoo | 8 |
1 files changed, 8 insertions, 0 deletions
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 |