Booting from artix.iso file: how to get persistence?
I boot from iso file with the following grub2 instructions:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
# path to the partition holding ISO images (using UUID)
probe -u $root --set=rootuuid
set imgdevpath="/dev/disk/by-uuid/$rootuuid"
menuentry "ARTIX grub_iso" --class dvd {
set root=(hd0,5)
set isofile="/isos/artix-lxqt-20171015-x86_64.iso"
set dri="free"
search --no-floppy -f --set=root $isofile
probe -u $root --set=abc
set pqr="/dev/disk/by-uuid/$abc"
loopback loop $isofile
linux (loop)/boot/vmlinuz-x86_64 ramdisk_size=8000 root=/dev/ram0 rw changes=/1_artixchanges fromhd=/mnt/sda5 img_dev=$pqr img_loop=$isofile driver=$dri rw
menuentry "porteus PORTEUS 64bit_v32 XFCE sda5" {
set root=(hd0,5)
linux /64_V32/boot/syslinux/vmlinuz from=/dev/sda5/64_V32 changes=/64_V32/xfce extramod=/64_V32/xfce login=root resume=/dev/sda7 acpi=off
initrd /64_V32/boot/syslinux/initrd.xz
}
menuentry "porteus PORTEUS 1_nemesis NEMESIS sda5" {
set root=(hd0,5)
linux /1_nemesis/boot/syslinux/vmlinuz from=/dev/sda5/1_nemesis changes=/changes
initrd /1_nemesis/boot/syslinux/initrd.xz
}
Artix will boot perfecty.
However, this is not enough to provide persistence. I know my attempt in syntax is rather naive.
Do you have some suggestion for a syntax that will provide persistence.
Thanks.