X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/4e8d8b2e19d0222f5f859c8462f420877b68aa24..b3c2bcf58ff8ec8362906976863e174eb92aaa51:/IMG/cpio/ventoy/hook/suse/ventoy-hook.sh 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)