]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Fix the issue that SLES/OpenSUSE can not boot after install. (#3125)
authorlongpanda <admin@ventoy.net>
Thu, 20 Feb 2025 14:07:28 +0000 (22:07 +0800)
committerlongpanda <admin@ventoy.net>
Thu, 20 Feb 2025 14:07:28 +0000 (22:07 +0800)
IMG/cpio/ventoy/hook/suse/ventoy-hook.sh

index 36188715ab4fc05fa21e0aa96766c50c3c557743..cc90cc5e5666554c8217482e133e55a5942fd847 100644 (file)
@@ -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)