[Pkg-sysvinit-devel] Bug#344547: -f in mount

Robert Millan rmh at aybabtu.com
Fri Dec 30 20:18:01 UTC 2005


Hi,

Since -f is not available for mount on GNU/Linux (well, it is, but doesn't have
the "force" meaning), could you conditionalise it and pass -f for GNU/kFreeBSD ?

Patch follows:

--- /etc/init.d/umountroot~     2005-11-18 16:51:59.000000000 +0100
+++ /etc/init.d/umountroot      2005-12-30 21:16:42.579833600 +0100
@@ -21,7 +21,10 @@

 do_stop () {
     [ "$VERBOSE" != no ] && log_action_begin_msg "Mounting root filesystem read-only"
-    mount -n -o remount,ro /
+    if [ "`uname -s`" = "GNU/kFreeBSD" ] ; then
+      force="-f"
+    fi
+    mount ${force} -n -o remount,ro /
     [ "$VERBOSE" != no ] && log_action_end_msg $?
 }


-- 
Robert Millan




More information about the Pkg-sysvinit-devel mailing list