From b3c2bcf58ff8ec8362906976863e174eb92aaa51 Mon Sep 17 00:00:00 2001 From: longpanda Date: Thu, 20 Feb 2025 22:07:28 +0800 Subject: [PATCH] Fix the issue that SLES/OpenSUSE can not boot after install. (#3125) --- IMG/cpio/ventoy/hook/suse/ventoy-hook.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/IMG/cpio/ventoy/hook/suse/ventoy-hook.sh b/IMG/cpio/ventoy/hook/suse/ventoy-hook.sh index 36188715..cc90cc5e 100644 --- a/IMG/cpio/ventoy/hook/suse/ventoy-hook.sh +++ b/IMG/cpio/ventoy/hook/suse/ventoy-hook.sh @@ -26,6 +26,12 @@ if [ -f $VTOY_PATH/autoinstall ]; then fi fi +if $GREP -q 'rdinit=/vtoy/vtoy' /proc/cmdline; then + echo "remove rdinit param" >> $VTLOG + echo "ptoptions=+rdinit" >> /linuxrc.config +fi + + if $BUSYBOX_PATH/ls $VTOY_PATH | $GREP -q 'ventoy_dud[0-9]'; then if [ -f /linuxrc.config ]; then vtKerVer=$($BUSYBOX_PATH/uname -r)