We can't remove dev/* if we're not in the guest's root.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Wed, 4 Oct 2006 16:35:26 +0000 (16:35 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Wed, 4 Oct 2006 16:35:26 +0000 (16:35 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2350 94cd875c-1c1d-0410-91d2-eb244daf1a30

scripts/vserver-build.template

index b56a3e4..823390b 100644 (file)
@@ -87,12 +87,12 @@ for t in "${TEMPLATE[@]}"; do
 
     $DECOMPRESS "$t" | $EXTRACT
 done
-popd &> /dev/null
 
 test -z "$no_dev_sanity" || {
     rm -rf dev/*
     populateDev
 }
+popd &> /dev/null
 
 test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"