Skip to content

Commit b3c2bcf

Browse files
committed
Fix the issue that SLES/OpenSUSE can not boot after install. (ventoy#3125)
1 parent 4e8d8b2 commit b3c2bcf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

IMG/cpio/ventoy/hook/suse/ventoy-hook.sh

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ if [ -f $VTOY_PATH/autoinstall ]; then
2626
fi
2727
fi
2828

29+
if $GREP -q 'rdinit=/vtoy/vtoy' /proc/cmdline; then
30+
echo "remove rdinit param" >> $VTLOG
31+
echo "ptoptions=+rdinit" >> /linuxrc.config
32+
fi
33+
34+
2935
if $BUSYBOX_PATH/ls $VTOY_PATH | $GREP -q 'ventoy_dud[0-9]'; then
3036
if [ -f /linuxrc.config ]; then
3137
vtKerVer=$($BUSYBOX_PATH/uname -r)

0 commit comments

Comments
 (0)