git: df4a9902eac7 - stable/14 - rc.initdiskless: Disable soft-updates in mdmfs (again)

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Fri, 29 Mar 2024 18:11:57 UTC
The branch stable/14 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=df4a9902eac75c31dd8857e94b9aadd8c88cae03

commit df4a9902eac75c31dd8857e94b9aadd8c88cae03
Author:     Jose Luis Duran <jlduran@gmail.com>
AuthorDate: 2024-03-20 04:54:18 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-03-29 13:53:54 +0000

    rc.initdiskless: Disable soft-updates in mdmfs (again)
    
    Re-apply the -S switch to disable soft-updates in memory disks (commit
    8b1292ac5219). This might be beneficial when tmpfs(5) is not present in
    the kernel, as this can cause mdmfs(8)'s auto keyword to fallback to
    using md(4).
    
    PR:             85558
    MFC after:      1 week
    Reviewed by:    imp, emaste, brooks
    Differential Revision:  https://reviews.freebsd.org/D43242
    
    (cherry picked from commit bb4116576f2edf466ada3885cf851599ce7a4792)
---
 libexec/rc/rc.initdiskless | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libexec/rc/rc.initdiskless b/libexec/rc/rc.initdiskless
index 8b4a01187636..a6820a546e55 100644
--- a/libexec/rc/rc.initdiskless
+++ b/libexec/rc/rc.initdiskless
@@ -208,9 +208,9 @@ handle_remount() { # $1 = mount point
 # $1 is size in 512-byte sectors, $2 is the mount point.
 mount_md() {
     if [ ${o_verbose} -gt 0 ] ; then
-        /sbin/mdmfs -XL -s $1 auto $2
+        /sbin/mdmfs -XL -S -s $1 auto $2
     else
-        /sbin/mdmfs -s $1 auto $2
+        /sbin/mdmfs -S -s $1 auto $2
     fi
 }