From: longpanda Date: Sun, 24 Apr 2022 07:28:32 +0000 (+0800) Subject: support inst.ks=cdrom:/xxx for CentOS 7 X-Git-Tag: v1.0.74~10 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/33a562c27367f8b374466db663f2f96d0454c7f8?ds=sidebyside support inst.ks=cdrom:/xxx for CentOS 7 --- diff --git a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh index 5067532..bf95ab0 100644 --- a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh +++ b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh @@ -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