allow to configure fstab-file
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 3 Feb 2004 21:54:20 +0000 (21:54 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 3 Feb 2004 21:54:20 +0000 (21:54 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@769 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vserver-setup.functions

index 283300a..8a936ca 100644 (file)
@@ -128,6 +128,7 @@ function setup_setDefaults
     : ${SETUP_CONFDIR:=$CONFDIR/$1}
     : ${SETUP_LOCKFILE:=$RUNDIR/$1}
     : ${SETUP_LOCKREVDIR:=$CONFDIR/.defaults/run.rev}
+    findFile SETUP_FSTAB "$CONFDIR"/.defaults/fstab "$PKGLIBDIR"/defaults/fstab
 }
 
 function setup_writeOption
@@ -162,11 +163,7 @@ function setup_writeOption
 
 function setup_writeInitialFstab
 {
-    cat <<EOF >$SETUP_CONFDIR/fstab
-none   /proc           proc    defaults                0 0
-none   /tmp            tmpfs   size=16m,mode=1777      0 0
-none   /dev/pts        devpts  gid=5,mode=620          0 0
-EOF
+    cat "$SETUP_FSTAB" >"$SETUP_CONFDIR"/fstab
 }
 
 function setup_test