aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnicorn9x <unicorn9x@yahoo.com.vn>2025-09-01 11:30:48 +0000
committerWarner Losh <imp@FreeBSD.org>2025-09-05 18:42:21 +0000
commit3ed0cdf7de79fc0f50f57e75cdb9ae178ab0e74c (patch)
treece9df13feacf29a3cb1a55dc3d67d5a28bdc07e4
parenta930cc8bad644039cfcfa5ff7c6fe3e8548aa9ae (diff)
Update vmimage.subr
This "noatime" tweak, reduced the OPNsense constant 50kb - 80kb disk writes that wear down the SSD / NVME. Signed-off-by: Unicorn9x Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1834
-rw-r--r--release/tools/vmimage.subr2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/tools/vmimage.subr b/release/tools/vmimage.subr
index 156987e33457..20ffe3b2dac7 100644
--- a/release/tools/vmimage.subr
+++ b/release/tools/vmimage.subr
@@ -82,7 +82,7 @@ vm_install_base() {
echo '# Custom /etc/fstab for FreeBSD VM images' \
> ${DESTDIR}/etc/fstab
if [ "${VMFS}" != zfs ]; then
- echo "/dev/${ROOTLABEL}/rootfs / ${VMFS} rw 1 1" \
+ echo "/dev/${ROOTLABEL}/rootfs / ${VMFS} rw,noatime 1 1" \
>> ${DESTDIR}/etc/fstab
fi
if [ -z "${NOSWAP}" ]; then