From d3138479d78a62924c182d809bd10d15191d4a70 Mon Sep 17 00:00:00 2001 From: longpanda Date: Tue, 10 Aug 2021 09:18:35 +0800 Subject: [PATCH] Fixe the boot issue for Untangle ISO (#1054) --- IMG/cpio/ventoy/hook/debian/udev_disk_hook.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/IMG/cpio/ventoy/hook/debian/udev_disk_hook.sh b/IMG/cpio/ventoy/hook/debian/udev_disk_hook.sh index 84e87709..c46f85b4 100644 --- a/IMG/cpio/ventoy/hook/debian/udev_disk_hook.sh +++ b/IMG/cpio/ventoy/hook/debian/udev_disk_hook.sh @@ -41,18 +41,18 @@ ventoy_os_install_dmsetup() { fi # 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 - 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 vtlog "more than one pkgs, need to filter..." VER=$($BUSYBOX_PATH/uname -r) - LINE=$($GREP ' md-modules.*\.udeb' $VTOY_PATH/iso_file_list | $GREP $VER) - LINTCNT=$($GREP ' md-modules.*\.udeb' $VTOY_PATH/iso_file_list | $GREP -c $VER) + LINE=$($GREP -i ' md-modules.*\.udeb' $VTOY_PATH/iso_file_list | $GREP -i $VER) + LINTCNT=$($GREP -i ' md-modules.*\.udeb' $VTOY_PATH/iso_file_list | $GREP -i -c $VER) if [ $LINTCNT -gt 1 ]; then 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 install_udeb_from_line "$LINE" ${vt_usb_disk}