Skeleton FR initrd uploaded
NEW LATEST:
# initrd/init: simple switch_root init with overlay filesystem set up.
# Copyright William McEwan (wiak) 26 July 2019+; Licence MIT (aka X11 license)
# version="7.0.3"; revision="-rc1" Date: 05Apr2024
# Changes: 05Apr2024 Now have optional w_initconfig externally sourced before w_init
# Can be used to override the likes of w_changes and w_changes1 and more...
Hardly tested this, but only a minor change (simple single line of code) involved so all previous functions untouched.
Clarity has often commented in various Puppy topics that Pups can redirect savefolder via a config file (they call that SAVESPEC apparently). In actual fact, KL distros have always been able to redirect savefolder location via w_init by simple writing to the top of external w_init file the likes of:
w_changes=UUID=whatever_xxx=/directory
w_changes1=RAM2
or can leave w_changes1 line out if wanting direct saves
As far as I remember doing so even works for ISO booting with the likes of Ventoy and so on. i.e. grub menu can easily be overridden by putting copy of w_init into the BOOTISOS folder and adding the suggested top two lines.
However, just to make that old KL/FR initrd redirect save persistence file/folder mechanism simpler to use, I now made a quick mod to the FR initrd to split the w_init into two parts. The first part is optional and is an external text config file called w_initconfig. It simply gets autorun before w_init (i.e. sourced) and could contain any relevant alterations a user wants, but definitely could simply contain that redirection of save folder information... Anyway, to make it even more simple, I've written a quick w_initconfig generator that will accurately and correctly write the relevant redirect of upper_changes savefolder information (i.e. with correct UUID and directory name); that was simple to write since just a modification to well-used and now re-used wd_grubconfig script code.
The w_initconfig file generator script is attached (script name is wd_initconfig_make). To use it simply place a copy of that script in the directory on whatever partition you want to redirect the savefolder persistence to - any place at all in fact. Then simply run the script and it will generate a suitable w_initconfig which you should copy into you frugal install directory (or BOOTISOS directory if using Ventoy). That w_initconfig redirection will take precedence over any grub menu choice so makes it easy to redirect save persistence anywhere and not just Persistence/Sessions... ANYWHERE YOU LIKE and includes working with ISOS as far as I believe, and no doubt in Qemu too (but didn't have time to test). Better docs later - just try it out. Help text given by:
Code: Select all
./wd_initconfig_make --help
EDIT: I've also thrown together a new kmod version of this latest FR Initrd - I think Arch distros needed that. It is untested, but maybe fine... Late here, will upload that Arch-related skeleton FR initrd tomorrow.