]> git.pld-linux.org Git - packages/kexec-tools.git/commitdiff
- take current cmdnline from /proc
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 2 Jun 2011 17:59:06 +0000 (17:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    kexec.init -> 1.5

kexec.init

index c67a0d2f89e50858ee1bde32ff38139e727214bc..b5aceed3d9916111fc631dca76f84c781ef41b1e 100644 (file)
@@ -22,7 +22,17 @@ APPEND=""
 
 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
This page took 0.206244 seconds and 4 git commands to generate.