diff options
-rw-r--r-- | init | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -23,19 +23,9 @@ for cmd in $CMDLINE; do single) export runlevel="S" ;; #some people use 'single' #Allow "init=X" to pass-through init=*) kinit_params="${kinit_params} ${cmd}" ;; - # replace can cause problems for the following entries - # These should only be applied to the lefthand side of the expression - # until we find a fix hardcode the stuff here. - root=*) export "${cmd}";; - md=*) export "${cmd}" ;; - crypto=*) export "${cmd}" ;; - resume2=*) export "${cmd}" ;; - ip=*) export "${cmd}" ;; - nfsaddrs=*) export "${cmd}" ;; - nfsroot=*) export "${cmd}" ;; # only export stuff that does work with dash :) - *=*) cmd="$(replace "${cmd}" '.' '_')" - cmd="$(replace "${cmd}" '-' '_')" + *=*) cmd="$(replace -s= "${cmd}" '.' '_')" + cmd="$(replace -s= "${cmd}" '-' '_')" export "${cmd}" ;; *) cmd="$(replace "${cmd}" '.' '_')" |