diff --git a/sbin/gentoo-upgrade.sh b/sbin/gentoo-upgrade.sh index 5f988d4..2c7a5f9 100755 --- a/sbin/gentoo-upgrade.sh +++ b/sbin/gentoo-upgrade.sh @@ -186,6 +186,12 @@ if [ $STAGE_CNT -eq $STAGE ]; then /etc/init.d/squash_portage restart [ 0 -ne $? ] && echo "Stage $STAGE: cann't restart squash_portage ;-( =======" && exit $STAGE fi + + # recreate layman squashfs files + if [[ -x /etc/init.d/squash_layman && "" != "`mount | grep '^aufs' | grep $PORTDIR`" ]]; then + /etc/init.d/squash_layman restart + [ 0 -ne $? ] && echo "Stage $STAGE: cann't restart squash_layman ;-( =======" && exit $STAGE + fi fi let STAGE_CNT++