Fix a bug when ISO contains a ks=file:/xxx boot parameter.

This commit is contained in:
longpanda 2022-09-19 22:35:02 +08:00
parent b7c3cbd23b
commit 7fc72d5ce6
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,10 @@ if [ -f $VTOY_PATH/autoinstall ]; then
VTKS="inst.ks=file:$VTOY_PATH/autoinstall"
else
for vtParam in $($CAT /proc/cmdline); do
if echo $vtParam | $GREP -q 'ks=file:/'; then
continue
fi
if echo $vtParam | $GREP -q 'inst.ks=hd:LABEL='; then
vtRawKsFull="$vtParam"
vtRawKs=$(echo $vtParam | $AWK -F: '{print $NF}')