From 52c3715fd47e1d8040009560ff80238e386231bb Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 15 Jul 2009 09:06:13 +0200 Subject: [PATCH] change the way init arguments are stripped from the command line $initrdargs now holds all command line options we want to strip from the command line. Command line parsers can extend this space separated list. --- modules.d/99base/init | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/modules.d/99base/init b/modules.d/99base/init index 4c90f2b..ae71763 100755 --- a/modules.d/99base/init +++ b/modules.d/99base/init @@ -203,16 +203,12 @@ for i in $(export -p); do done initargs="" +initrdargs="$initrdargs console BOOT_IMAGE rdbreak rdinitdebug rdudevinfo rdudevdebug rdnetdebug rdcopystate rdshell" + for x in "$@"; do - [ "${x%%=*}" = "console" ] && continue - [ "${x%%=*}" = "BOOT_IMAGE" ] && continue - [ "${x%%=*}" = "rdbreak" ] && continue - [ "${x%%=*}" = "rdinitdebug" ] && continue - [ "${x%%=*}" = "rdudevinfo" ] && continue - [ "${x%%=*}" = "rdudevdebug" ] && continue - [ "${x%%=*}" = "rdnetdebug" ] && continue - [ "${x%%=*}" = "rdcopystate" ] && continue - [ "${x%%=*}" = "rdshell" ] && continue + for s in $initrdargs; do + [ "${x%%=*}" = $s ] && continue 1 + done initargs="$initargs $x" done -- 2.7.4