From a5e064122696cbcad9c60f2003f8369813b8f13c Mon Sep 17 00:00:00 2001 From: crim50n Date: Wed, 14 Sep 2022 04:25:24 +0300 Subject: [PATCH] Update to support a future version of MiniOS. (#1841) * Update minios-hook.sh * Update minios-disk.sh --- IMG/cpio/ventoy/hook/debian/minios-disk.sh | 2 +- IMG/cpio/ventoy/hook/debian/minios-hook.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IMG/cpio/ventoy/hook/debian/minios-disk.sh b/IMG/cpio/ventoy/hook/debian/minios-disk.sh index 750eb5b8..fb1768b1 100644 --- a/IMG/cpio/ventoy/hook/debian/minios-disk.sh +++ b/IMG/cpio/ventoy/hook/debian/minios-disk.sh @@ -33,7 +33,7 @@ ventoy_os_install_dmsetup_by_fuse() { vtoy_fuse_iso -f $VTOY_PATH/ventoy_dm_table -m $VTOY_PATH/mnt/fuse mount -t iso9660 $VTOY_PATH/mnt/fuse/ventoy.iso $VTOY_PATH/mnt/iso - mount -t squashfs $VTOY_PATH/mnt/iso/minios/01-core*.sb $VTOY_PATH/mnt/squashfs + mount -t squashfs $VTOY_PATH/mnt/iso/minios/0*-core*.sb $VTOY_PATH/mnt/squashfs KoName=$(ls $VTOY_PATH/mnt/squashfs/lib/modules/$2/kernel/drivers/md/dm-mod.ko*) vtlog "insmod $KoName" diff --git a/IMG/cpio/ventoy/hook/debian/minios-hook.sh b/IMG/cpio/ventoy/hook/debian/minios-hook.sh index 39568713..09f6e632 100644 --- a/IMG/cpio/ventoy/hook/debian/minios-hook.sh +++ b/IMG/cpio/ventoy/hook/debian/minios-hook.sh @@ -20,5 +20,5 @@ if [ -f /lib/livekitlib ] && $GREP -q 'debug_log.*find_data_try' /lib/livekitlib; then $SED "/debug_log.*find_data_try/a\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/debian/minios-disk.sh" -i /lib/livekitlib else - $SED "/find_data/i\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/debian/minios-disk.sh" -i /init + $SED "/find_data/i\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/debian/minios-disk.sh" -i /init fi