mirror of
https://github.com/ventoy/Ventoy.git
synced 2024-12-26 07:05:58 -05:00
Fixe the boot issue for Untangle ISO (#1054)
This commit is contained in:
parent
56a1543f7d
commit
d3138479d7
@ -41,18 +41,18 @@ ventoy_os_install_dmsetup() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# install md-modules
|
# install md-modules
|
||||||
LINE=$($GREP ' md-modules.*\.udeb' $VTOY_PATH/iso_file_list)
|
LINE=$($GREP -i ' md-modules.*\.udeb' $VTOY_PATH/iso_file_list)
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
LINTCNT=$($GREP -c ' md-modules.*\.udeb' $VTOY_PATH/iso_file_list)
|
LINTCNT=$($GREP -i -c ' md-modules.*\.udeb' $VTOY_PATH/iso_file_list)
|
||||||
if [ $LINTCNT -gt 1 ]; then
|
if [ $LINTCNT -gt 1 ]; then
|
||||||
vtlog "more than one pkgs, need to filter..."
|
vtlog "more than one pkgs, need to filter..."
|
||||||
VER=$($BUSYBOX_PATH/uname -r)
|
VER=$($BUSYBOX_PATH/uname -r)
|
||||||
|
|
||||||
LINE=$($GREP ' md-modules.*\.udeb' $VTOY_PATH/iso_file_list | $GREP $VER)
|
LINE=$($GREP -i ' md-modules.*\.udeb' $VTOY_PATH/iso_file_list | $GREP -i $VER)
|
||||||
LINTCNT=$($GREP ' md-modules.*\.udeb' $VTOY_PATH/iso_file_list | $GREP -c $VER)
|
LINTCNT=$($GREP -i ' md-modules.*\.udeb' $VTOY_PATH/iso_file_list | $GREP -i -c $VER)
|
||||||
if [ $LINTCNT -gt 1 ]; then
|
if [ $LINTCNT -gt 1 ]; then
|
||||||
vtlog "Still more than one pkgs, use the first one..."
|
vtlog "Still more than one pkgs, use the first one..."
|
||||||
LINE=$($GREP ' md-modules.*\.udeb' $VTOY_PATH/iso_file_list | $GREP -m1 $VER)
|
LINE=$($GREP -i ' md-modules.*\.udeb' $VTOY_PATH/iso_file_list | $GREP -i -m1 $VER)
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
install_udeb_from_line "$LINE" ${vt_usb_disk}
|
install_udeb_from_line "$LINE" ${vt_usb_disk}
|
||||||
|
Loading…
Reference in New Issue
Block a user