From: longpanda Date: Sat, 9 Apr 2022 10:07:04 +0000 (+0800) Subject: cc X-Git-Tag: v1.0.74~18 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/07693bf84071868dbd7af8dc4919faf05e684ca0 cc --- diff --git a/IMG/cpio/ventoy/hook/suse/disk_hook.sh b/IMG/cpio/ventoy/hook/suse/disk_hook.sh index d736cb8..d5b07b3 100644 --- a/IMG/cpio/ventoy/hook/suse/disk_hook.sh +++ b/IMG/cpio/ventoy/hook/suse/disk_hook.sh @@ -32,7 +32,8 @@ ventoy_os_install_dmsetup_by_fuse() { mount -t iso9660 $VTOY_PATH/mnt/fuse/ventoy.iso $VTOY_PATH/mnt/iso - mount -t squashfs $VTOY_PATH/mnt/iso/system/squashfs_sys.img $VTOY_PATH/mnt/squashfs + [ -f $VTOY_PATH/mnt/iso/system/squashfs_sys.img ] && mount -t squashfs $VTOY_PATH/mnt/iso/system/squashfs_sys.img $VTOY_PATH/mnt/squashfs + [ -f $VTOY_PATH/mnt/iso/system/squashfs.img ] && mount -t squashfs $VTOY_PATH/mnt/iso/system/squashfs.img $VTOY_PATH/mnt/squashfs KoName=$(ls $VTOY_PATH/mnt/squashfs/lib/modules/$2/kernel/drivers/md/dm-mod.ko*) vtlog "insmod $KoName"