[readonly/geninitrd/devel: 214/334] Print warning when /proc is not mounted since too many things depend on this.

draenog draenog at pld-linux.org
Sat Nov 2 19:29:31 CET 2013


commit 48762878001bc808a5bbc9ee210dfa3bdc668bc0
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Jun 24 13:12:27 2004 +0000

    Print warning when /proc is not mounted since too many things depend on this.
    
    svn-id: @4238

 geninitrd | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/geninitrd b/geninitrd
index 34ce9a2..6256979 100755
--- a/geninitrd
+++ b/geninitrd
@@ -847,6 +847,10 @@ if [ ! -d "/lib/modules/$kernel" ]; then
 	exit 1
 fi
 
+if [ ! -f /proc/mounts ]; then
+    	echo "/proc filesystem not mounted, may cause wrong results or failure." 1>&2
+fi
+    
 for n in $PREMODS; do
 	findmodule "$n"
 done
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/398807324938659207036e520c0950a61ef50c11



More information about the pld-cvs-commit mailing list