packages: kexec-tools/kexec.init - take current cmdnline from /proc
    glen 
    glen at pld-linux.org
       
    Thu Jun  2 19:59:11 CEST 2011
    
    
  
Author: glen                         Date: Thu Jun  2 17:59:11 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- take current cmdnline from /proc
---- Files affected:
packages/kexec-tools:
   kexec.init (1.4 -> 1.5) 
---- Diffs:
================================================================
Index: packages/kexec-tools/kexec.init
diff -u packages/kexec-tools/kexec.init:1.4 packages/kexec-tools/kexec.init:1.5
--- packages/kexec-tools/kexec.init:1.4	Thu Aug 27 19:17:36 2009
+++ packages/kexec-tools/kexec.init	Thu Jun  2 19:59:06 2011
@@ -22,7 +22,17 @@
 
 load() {
 	if [ -z "$APPEND" ]; then
-	   	APPEND=$(cat /proc/cmdline)
+		local a
+		for a in $(cat /proc/cmdline); do
+			case "$a" in
+				kexec_*=)
+					# skip entries like:
+					# kexec_jump_back_entry=0x01000201a4814e49
+					;;
+				*)
+					APPEND="$APPEND $a"
+			esac
+		done
 	fi
 
 	# convert to real file for readability
================================================================
---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/kexec-tools/kexec.init?r1=1.4&r2=1.5&f=u
    
    
More information about the pld-cvs-commit
mailing list