From 33a562c27367f8b374466db663f2f96d0454c7f8 Mon Sep 17 00:00:00 2001 From: longpanda Date: Sun, 24 Apr 2022 15:28:32 +0800 Subject: [PATCH] support inst.ks=cdrom:/xxx for CentOS 7 --- IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh index 50675326..bf95ab0c 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