prepareInit(): fixed case when .autofsck does not exist
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sat, 3 Jul 2004 01:38:32 +0000 (01:38 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sat, 3 Jul 2004 01:38:32 +0000 (01:38 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1640 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vserver.functions

index 52558b7..2316ee2 100644 (file)
@@ -593,8 +593,8 @@ function prepareInit
              find var/lock ! -type d -print0; } | xargs -0r $_CHROOT_RM
            ;;
        plain)
-           $_CHROOT_RM .autofsck forcefsck
-           : | $_CHROOT_CAT fastboot
+           $_CHROOT_RM .autofsck forcefsck 2>/dev/null || :
+           : | $_CHROOT_CAT fastboot       2>/dev/null || :
            ;;
        minit)
            ;;