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
1 changed files with 6 additions and 0 deletions

View File

@ -37,6 +37,12 @@ else
VTKS="ks=hd:/dev/dm-0:$vtRawKs" VTKS="ks=hd:/dev/dm-0:$vtRawKs"
break break
fi 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 done
fi fi