From: Sascha Wildner Date: Sun, 10 Jan 2010 19:07:51 +0000 (+0100) Subject: nrelease: fsck the root filesystem on our USB images. X-Git-Url: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/b589b7a68a1fa27c1f0932b98f48c9076b441e55 nrelease: fsck the root filesystem on our USB images. / is mounted r/w for USB images, hence we need to fsck to prevent accidental foot shooting in case some doesn't shutdown cleanly. Reported-by: Emmanuel De Paepe Dragonfly-bug: --- diff --git a/nrelease/Makefile b/nrelease/Makefile index 8ceb2d4..24819b6 100644 --- a/nrelease/Makefile +++ b/nrelease/Makefile @@ -454,7 +454,7 @@ mkimg: mount /dev/`cat ${ISODIR}/vn.which`s1a ${IMGMNT} cpdup ${ISOROOT} ${IMGMNT} @echo "STEP: fixup ${IMGMNT}/etc/fstab" - echo "/dev/${IMGUSBDEV}s1a / ufs rw,noatime 0 0" > ${IMGMNT}/etc/fstab + echo "/dev/${IMGUSBDEV}s1a / ufs rw,noatime 0 1" > ${IMGMNT}/etc/fstab echo "proc /proc procfs rw 0 0" >> ${IMGMNT}/etc/fstab @echo "STEP: fixup ${IMGMNT}/boot/loader.conf" -fgrep -v kernel_options ${IMGMNT}/boot/loader.conf > ${IMGMNT}/boot/loader.conf.new