From fcac246ee2b5dda2ce1c01022572a7466df60668 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Sat, 9 Mar 2013 09:52:49 +0400 Subject: [PATCH] Recreate squashfs portage files. --- sbin/gentoo-upgrade.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sbin/gentoo-upgrade.sh b/sbin/gentoo-upgrade.sh index aeec4fc..af9b84c 100755 --- a/sbin/gentoo-upgrade.sh +++ b/sbin/gentoo-upgrade.sh @@ -190,6 +190,12 @@ if [ $STAGE_CNT -eq $STAGE ]; then fi let STAGE++ + + # recreate portage squashfs files + if [[ -x /etc/init.d/squash_portage && "" != "`mount | grep '^aufs' | grep $PORTDIR`" ]]; then + /etc/init.d/squash_portage restart + [ 0 -ne $? ] && echo "Stage $STAGE: cann't restart squash_portage ;-( =======" && exit $STAGE + fi fi let STAGE_CNT++