On Monday 06 November 2006 17:33, Roy Marples wrote:
> Admittedly, an always ro / isn't handled right now, but I'll ensure it will
> be for the next release :)

We handle it with the attached patch, just comitted to our svn repo :)

Thanks

-- 
Roy Marples <[EMAIL PROTECTED]>
Gentoo/Linux/FreeBSD Developer (baselayout, networking)
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 2364)
+++ ChangeLog	(working copy)
@@ -1,6 +1,11 @@
 # ChangeLog for Gentoo System Intialization ("rc") scripts
 # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPLv2
 
+  06 Nov 2006; Roy Marples <[EMAIL PROTECTED]>:
+
+    Ensure that we only move $svcdir from tmpfs to disk if $svclib is rw.
+    Thanks to Bruno for the idea.
+
   05 Nov 2006; Roy Marples <[EMAIL PROTECTED]>:
 
     Don't create /proc on Linux as build scripts like to handle it now.
Index: sbin/rc
===================================================================
--- sbin/rc	(revision 2364)
+++ sbin/rc	(working copy)
@@ -442,7 +442,8 @@
 rm -rf "${svcdir}/failed" &>/dev/null
 
 # If $svcdir is mounted in ram, save it back to disk and unmount
-if [[ $'\n'$(get_mounts) =~ $'\n'${svcdir}\  ]] ; then
+# but only if $svclib is writeable.
+if [[ $'\n'$(get_mounts) =~ $'\n'${svcdir}\  && -w ${svclib} ]] ; then
 	# Function to show the timeout message
 	timeout=
 	do_timeout() {

Reply via email to