X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/602e8c7fdff11f14e5f19429251e38372ea84553..261ddcef45ede2f9440342a5b3dd474e26df1679:/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh 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}')