From 903fd7aa01807f0394a8355a031a0b2361e04663 Mon Sep 17 00:00:00 2001 From: Florian Fuchs Date: Thu, 8 Jan 2026 09:26:35 +0100 Subject: [PATCH] Support booting T2SDE ISOs better (#3468) T2 uses zstd compressed kernel modules, where dm-mod also depends on dax module. So the default fallback to only decompress dm-mod isn't sufficient. So we manually uncompress dax.ko and dm-mod.ko and insmod this, as default busybox modprobe/insmod doesn't support zstd modules. --- IMG/cpio/ventoy/hook/t2/disk_hook.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/IMG/cpio/ventoy/hook/t2/disk_hook.sh b/IMG/cpio/ventoy/hook/t2/disk_hook.sh index d3b79a43..b977f710 100644 --- a/IMG/cpio/ventoy/hook/t2/disk_hook.sh +++ b/IMG/cpio/ventoy/hook/t2/disk_hook.sh @@ -25,7 +25,19 @@ fi VTPATH_OLD=$PATH; PATH=$BUSYBOX_PATH:$VTOY_PATH/tool:$PATH -modprobe dm-mod +vtlog "Loading dax and dm-mod module ..." +$BUSYBOX_PATH/modprobe dax > /dev/null 2>&1 +$BUSYBOX_PATH/modprobe dm-mod > /dev/null 2>&1 + +if $GREP -q 'device-mapper' /proc/devices; then + vtlog "dm-mod module check success ..." +else + vtlog "Need to extract dax and dm-mod module ..." + $VTOY_PATH/tool/zstdcat /lib/modules/$(uname -r)/drivers/dax/dax.ko.zst > $VTOY_PATH/extract_dax.ko + $BUSYBOX_PATH/insmod $VTOY_PATH/extract_dax.ko + $VTOY_PATH/tool/zstdcat /lib/modules/$(uname -r)/drivers/md/dm-mod.ko.zst > $VTOY_PATH/extract_dm_mod.ko + $BUSYBOX_PATH/insmod $VTOY_PATH/extract_dm_mod.ko +fi wait_for_usb_disk_ready