From: longpanda Date: Thu, 20 Feb 2025 14:07:28 +0000 (+0800) Subject: Fix the issue that SLES/OpenSUSE can not boot after install. (#3125) X-Git-Tag: v1.1.03~5 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/b3c2bcf58ff8ec8362906976863e174eb92aaa51 Fix the issue that SLES/OpenSUSE can not boot after install. (#3125) --- diff --git a/IMG/cpio/ventoy/hook/suse/ventoy-hook.sh b/IMG/cpio/ventoy/hook/suse/ventoy-hook.sh index 3618871..cc90cc5 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)