mirror of
https://github.com/ventoy/Ventoy.git
synced 2024-12-26 23:25:57 -05:00
Fix a bug when ISO contains a ks=file:/xxx boot parameter.
This commit is contained in:
parent
b7c3cbd23b
commit
7fc72d5ce6
@ -26,6 +26,10 @@ if [ -f $VTOY_PATH/autoinstall ]; then
|
|||||||
VTKS="inst.ks=file:$VTOY_PATH/autoinstall"
|
VTKS="inst.ks=file:$VTOY_PATH/autoinstall"
|
||||||
else
|
else
|
||||||
for vtParam in $($CAT /proc/cmdline); do
|
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
|
if echo $vtParam | $GREP -q 'inst.ks=hd:LABEL='; then
|
||||||
vtRawKsFull="$vtParam"
|
vtRawKsFull="$vtParam"
|
||||||
vtRawKs=$(echo $vtParam | $AWK -F: '{print $NF}')
|
vtRawKs=$(echo $vtParam | $AWK -F: '{print $NF}')
|
||||||
|
Loading…
Reference in New Issue
Block a user