ventoy / Ventoy

A new bootable USB solution.
https://www.ventoy.net
GNU General Public License v3.0
62k stars 4.04k forks source link

[issue]: persistent mode for openSUSE #2843

Open trmdi opened 4 months ago

trmdi commented 4 months ago

Official FAQ

Ventoy Version

The latest

What about latest release

Yes. I have tried the latest release, but the bug still exist.

Try alternative boot mode

Yes. I have tried them, but the bug still exist.

BIOS Mode

Both

Partition Style

MBR

Disk Capacity

32GB

Disk Manufacturer

No response

Image file checksum (if applicable)

None

Image file download link (if applicable)

https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-KDE-Live-x86_64-Current.iso

What happened?

Is it possible to boot OpenSUSE Live ISO in the persistent mode? There is no guide for it in https://www.ventoy.net/en/plugin_persistence.html

trmdi commented 4 months ago

Probably this could be a hint: https://github.com/cyberorg/live-fat-stick/blob/f2d77ed176283b0142557c9a556c477dc907ec60/live-grub-stick#L279 or maybe this: https://build.opensuse.org/package/show/openSUSE:Factory:Live/livecd-openSUSE ?

trmdi commented 4 months ago

Or this: https://github.com/OSInside/kiwi/issues/860

trmdi commented 1 week ago

Here is a working config in case anyone need it. You can use it like this https://www.ventoy.net/en/plugin_grubmenu.html

set root=$vtoy_iso_part
set iso_dir="/ISO"
set iso_pattern="openSUSE-*-Live-*.iso"

for isofile in $iso_dir/$iso_pattern; do
    if [ -e "$isofile" ]; then
        regexp --set=isoname "$iso_dir/(.*)" "$isofile"

        menuentry "Live openSUSE (persistent) - $isoname" {
            loopback loop $isofile
            echo Loading kernel...
            linux (loop)/boot/x86_64/loader/linux iso-scan/filename=$isofile splash=silent quiet systemd.show_status=yes root=live:CDLABEL=openSUSE_Tumbleweed_KDE_Live rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 rd.live.cowfile.mbsize=4096
            echo Loading initrd...
            initrd (loop)/boot/x86_64/loader/initrd
        }
    fi
done

menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
    echo 'Return ...'
}