From 26e8ed624e352cef3f1ece73296c7c00fa6c7780 Mon Sep 17 00:00:00 2001 From: "Lev A. Serebryakov" Date: Fri, 26 Apr 2019 14:44:50 +0000 Subject: [PATCH] Make mdmfs verbose if diskless boot is verbose. Approved by: ian@ Differential Revision: D17104 --- libexec/rc/rc.initdiskless | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libexec/rc/rc.initdiskless b/libexec/rc/rc.initdiskless index 172f419d945f..60cfa8b174f8 100644 --- a/libexec/rc/rc.initdiskless +++ b/libexec/rc/rc.initdiskless @@ -208,7 +208,11 @@ handle_remount() { # $1 = mount point # The 'auto' parameter will attempt to use tmpfs(5), falls back to md(4). # $1 is size in 512-byte sectors, $2 is the mount point. mount_md() { - /sbin/mdmfs -s $1 auto $2 + if [ ${o_verbose} -gt 0 ] ; then + /sbin/mdmfs -XL -s $1 auto $2 + else + /sbin/mdmfs -s $1 auto $2 + fi } # Create the memory filesystem if it has not already been created