replace '1 1' with '0 0' in /etc/fstab in slice images instead of touching /fastboot
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 21 Jun 2013 20:43:53 +0000 (22:43 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 21 Jun 2013 20:43:53 +0000 (22:43 +0200)
we expect more accurate results, as we only want to skip fsck here but still have sysvinit do its job

config.lxc/sliceimage.post
config.planetlab/sliceimage.post

index 672119b..5a145e2 100644 (file)
@@ -29,6 +29,6 @@ if [ -d selinux ] ; then
 fi
 
 # for when runing under lxc, make sure we don't try to fsck from a slice
-touch ${vdir}/fastboot
+sed -i -e 's,1 1,0 0,' ${vdir}/etc/fstab
 
 cd -
index faeecb7..c414830 100644 (file)
@@ -38,6 +38,6 @@ if [ -d selinux ] ; then
 fi
 
 # for when runing under lxc, make sure we don't try to fsck from a slice
-touch ${vdir}/fastboot
+sed -i -e 's,1 1,0 0,' ${vdir}/etc/fstab
 
 cd -