dracut-lib.sh: getarg() echo with "" to prevent wildcard subst
if a value of a key on the kernel command line includes wildcards, these would be expanded. E.g., if you have "key=/dev/sd*" the value would be substituted with "/dev/sda /dev/sda1 /dev/sda2" instead of returning "/dev/sd*"master
parent
6a3c2215bb
commit
d765a3e71b
|
@ -74,7 +74,7 @@ _dogetarg() {
|
|||
fi
|
||||
done
|
||||
if [ -n "$_val" ]; then
|
||||
[ "x$_doecho" != "x" ] && echo $_val;
|
||||
[ "x$_doecho" != "x" ] && echo "$_val";
|
||||
return 0;
|
||||
fi
|
||||
return 1;
|
||||
|
@ -150,7 +150,7 @@ getargs() {
|
|||
shift
|
||||
done
|
||||
if [ -n "$_val" ]; then
|
||||
echo -n $_val
|
||||
echo -n "$_val"
|
||||
[ "$RD_DEBUG" = "yes" ] && set -x
|
||||
return 0
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue