Skip to content

Commit

Permalink
Fix the issue that SLES/OpenSUSE can not boot after install. (ventoy#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ventoy committed Feb 20, 2025
1 parent 4e8d8b2 commit b3c2bcf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions IMG/cpio/ventoy/hook/suse/ventoy-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b3c2bcf

Please sign in to comment.