support inst.ks=cdrom:/xxx for CentOS 7

This commit is contained in:
longpanda 2022-04-24 15:28:32 +08:00
parent 75517039a1
commit 33a562c273

View File

@ -37,6 +37,12 @@ else
VTKS="ks=hd:/dev/dm-0:$vtRawKs"
break
fi
if echo $vtParam | $GREP -q '^inst.ks=.*:/'; then
vtRawKs=$(echo $vtParam | $AWK -F: '{print $NF}')
VTKS="inst.ks=hd:/dev/dm-0:$vtRawKs"
break
fi
done
fi