]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Fix a bug when ISO contains a ks=file:/xxx boot parameter.
authorlongpanda <admin@ventoy.net>
Mon, 19 Sep 2022 14:35:02 +0000 (22:35 +0800)
committerlongpanda <admin@ventoy.net>
Mon, 19 Sep 2022 14:35:02 +0000 (22:35 +0800)
IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh

index acd05ce7a11ef0e7aafecbaa4336f51105eddf26..7601687418370b247b30206e4e479289dff4c44d 100644 (file)
@@ -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
     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}')
         if echo $vtParam | $GREP -q 'inst.ks=hd:LABEL='; then
             vtRawKsFull="$vtParam"
             vtRawKs=$(echo $vtParam | $AWK -F: '{print $NF}')