Page 1 of 1

How to define savefile/dir and sfs to load at boot from refind?

Posted: Thu May 30, 2024 9:10 am
by libertas

Hi,

I've already setup a SFS file comprised of some software and can load it successfully from the control panel/menu | System | System SFS Loader.

It would be even better if I could load the SFS file in the boot process.
Tried two entries in refind.conf using the parameter extrasfs as mentioned at
https://distro.ibiblio.org/fatdog/web/f ... tions.html.

One uses the add_options rEFInd option:

Code: Select all

menuentry "Fatdog64 Linux with save dir and sfs" {
    icon /EFI/boot/icons/os_fatdog.png
    volume PUPPIES
    initrd \FD901\initrd
    loader /FD901/vmlinuz
    options "savefile=ram:uuid:6e301609-8536-4989-871f-b4e1c7a47915:FatDog/fd64save waitdev=5"
    add_options "extrasfs=uuid:6e301609-8536-4989-871f-b4e1c7a47915:FatDog/project3.sfs waitdev=5"
}

In this second one I just appended the 'extrasfs=...' stuff to the options line, using a ; as separator:

Code: Select all

menuentry "Fatdog64 Linux with save dir and sfs2" {
    icon /EFI/boot/icons/os_fatdog.png
    volume PUPPIES
    initrd \FD901\initrd
    loader /FD901/vmlinuz
    options "savefile=ram:uuid:6e301609-8536-4989-871f-b4e1c7a47915:FatDog/fd64save waitdev=5;extrasfs=uuid:6e301609-8536-4989-871f-b4e1c7a47915:FatDog/project3.sfs waitdev=5"
}

None of them worked.
How should I do it?


Re: How to define savefile/dir and sfs to load at boot from refind?

Posted: Thu May 30, 2024 9:32 am
by LateAdopter

When I was experimenting, I never worked out how to do a manual mode of refind, I let it scan for bootable systems. In that case the Fatdog configuration was in a file called refind_linux.conf in the same directory as the Fatdog kernel and initrd.

Mine has this content:

Code: Select all

"Boot with nano" "waitdev=3 savefile=direct:label:XORO:/fd811sd/fd64save.ext4 mergeinitrd1=label:XORO:/fd811sd/initrd initrd=fd811sd\initrd-nano"
"Boot with Mega" "waitdev=3 savefile=direct:label:XORO:/fd811sd/fd64save.ext4" initrd=fd811sd\initrd

That worked OK.


Re: How to define savefile/dir and sfs to load at boot from refind?

Posted: Thu May 30, 2024 11:00 am
by libertas

Doing rEFInd manually is working fine.
Loading SFS it's not.
Still searching for a way to do it since the hyperlink I posted suggests it's possible.


Re: How to define savefile/dir and sfs to load at boot from refind?

Posted: Thu May 30, 2024 12:29 pm
by jamesbond
libertas wrote: Thu May 30, 2024 9:10 am

In this second one I just appended the 'extrasfs=...' stuff to the options line, using a ; as separator:

Code: Select all

menuentry "Fatdog64 Linux with save dir and sfs2" {
    icon /EFI/boot/icons/os_fatdog.png
    volume PUPPIES
    initrd \FD901\initrd
    loader /FD901/vmlinuz
    options "savefile=ram:uuid:6e301609-8536-4989-871f-b4e1c7a47915:FatDog/fd64save waitdev=5;extrasfs=uuid:6e301609-8536-4989-871f-b4e1c7a47915:FatDog/project3.sfs waitdev=5"
}

The second one should work, except that you have spurious "waitdev=5;" before the extrasfs=. If you like the options like this, it should work:

Code: Select all

options "savefile=ram:uuid:6e301609-8536-4989-871f-b4e1c7a47915:FatDog/fd64save extrasfs=uuid:6e301609-8536-4989-871f-b4e1c7a47915:FatDog/project3.sfs waitdev=5"