From: longpanda Date: Mon, 19 Sep 2022 14:35:02 +0000 (+0800) Subject: Fix a bug when ISO contains a ks=file:/xxx boot parameter. X-Git-Tag: v1.0.80~3 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/7fc72d5ce6c036fac768643510f7074f26ed5127 Fix a bug when ISO contains a ks=file:/xxx boot parameter. --- diff --git a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh index acd05ce..7601687 100644 --- a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh +++ b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh @@ -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}')