From a1771bd9b8d1b2b8052df257184d790c92327be4 Mon Sep 17 00:00:00 2001 From: Florian Fuchs Date: Sun, 5 Apr 2026 10:49:01 +0200 Subject: [PATCH] Improve booting of T2SDE live ISOs (#3526) T2SDE changed the boot process vastly with 26.3 as it ships as a live image now. So the injection hooks need to be customized. --- IMG/cpio/ventoy/hook/t2/ventoy-hook.sh | 2 ++ IMG/cpio/ventoy/ventoy_chain.sh | 4 ++-- IMG/cpio/ventoy/ventoy_loop.sh | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/IMG/cpio/ventoy/hook/t2/ventoy-hook.sh b/IMG/cpio/ventoy/hook/t2/ventoy-hook.sh index 2329265c..97a5828f 100644 --- a/IMG/cpio/ventoy/hook/t2/ventoy-hook.sh +++ b/IMG/cpio/ventoy/hook/t2/ventoy-hook.sh @@ -19,6 +19,8 @@ . $VTOY_PATH/hook/ventoy-os-lib.sh +$SED "/Searching/i $BUSYBOX_PATH/sh $VTOY_PATH/hook/t2/disk_hook.sh" -i /init +$SED "/disktype/i x=/dev/ventoy" -i /init $SED "/getdevice *devicefile/i $BUSYBOX_PATH/sh $VTOY_PATH/hook/t2/disk_hook.sh" -i /init $SED "/getdevice *devicefile/a devicefile=/dev/ventoy" -i /init diff --git a/IMG/cpio/ventoy/ventoy_chain.sh b/IMG/cpio/ventoy/ventoy_chain.sh index 11e133d3..bd1a0124 100644 --- a/IMG/cpio/ventoy/ventoy_chain.sh +++ b/IMG/cpio/ventoy/ventoy_chain.sh @@ -314,8 +314,8 @@ ventoy_get_os_type() { fi - if [ -e /init ]; then - if $GREP -q -m1 'T2 SDE' /init; then + if [ -e /etc/initrd-release ]; then + if $GREP -q -m1 't2sde' /etc/initrd-release; then echo 't2'; return fi fi diff --git a/IMG/cpio/ventoy/ventoy_loop.sh b/IMG/cpio/ventoy/ventoy_loop.sh index 157789f5..532faaaf 100644 --- a/IMG/cpio/ventoy/ventoy_loop.sh +++ b/IMG/cpio/ventoy/ventoy_loop.sh @@ -344,8 +344,8 @@ ventoy_get_os_type() { fi - if [ -e /init ]; then - if $GREP -q -m1 'T2 SDE' /init; then + if [ -e /etc/initrd-release ]; then + if $GREP -q -m1 't2sde' /etc/initrd-release; then echo 't2'; return fi fi