nrelease - USB image - use a noatime mount.
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 15 Sep 2009 00:57:40 +0000 (17:57 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 15 Sep 2009 00:57:40 +0000 (17:57 -0700)
* Mount the root for a USB disk key boot noatime to avoid unnecessary writes
  to the USB disk key.

nrelease/Makefile

index 534d19a..a0ef2bb 100644 (file)
@@ -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 0 0" > ${IMGMNT}/etc/fstab
+       echo "/dev/${IMGUSBDEV}s1a / ufs rw,noatime 0 0" > ${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