If you are one of the (possibly few at the moment) WeeDogLinux users you simply need to place the following argument on your grub kernel command line as an option (see LABEL option further below for iso booting):
GENERAL TO ALL METHODS AVAILABLE IN WEEDOGLINUX (WDL) SYSTEMS
Code: Select all
w_changes=<wherever you want changes/persistence folder to be saved to on your system>
which, by the way, can include RAM (i.e. w_changes=RAM0 or w_changes=RAM1 or w_changes=RAM2 modes)
For example:
Method 1 - use partition uuid (as found, for example, from blkid command)
(preferred over method 3 below for reasons given):
Code: Select all
w_changes=UUID=whatever_the_desired_partition_uuid_is=/path_to_directory_you_want_changes_folder_in
(e.g.: w_changes=UUID=a36a6ce1-xxxx-xxxx-xxxx=/WDL_mydistro)
Method 2 - use partition LABEL, which is particulary useful for iso boots
(preferred over method 3 below for reasons given):
Code: Select all
w_changes=LABEL=whatever_partition_label_is=/path_to_directory_you_want_changes_folder_in
Method 3 (use simplistic original bootfrom partition/directory location):
such as w_changes=/mnt/sda4/path2dir, but in practice it is not a good idea generally to use a /mnt/sdXX approach since it is inherently unreliable: this method is problematic because on booting via usb attached devices, underlying system somewhat randomly determines which actual partition is sda, sdb etc...:
Code: Select all
w_changes=/mnt/sdb1/path_to_directory_you_want_changes_folder_in
(Like Puppy and pretty much all frugally installable distros before and since) if no w_changes= option is supplied on grub kernel line then the directory vmlinuz and initrd.gz was in at boot time is what is used for save persistence changes location (which in WDL is a directory named upper_changes).
--------------------------------------------------------------------
Even more flexibly, in WeeDogLinux you can also specify alternative location for all the numbered (00 to 99 max layers) optional sfs modules (and/or similarly NN numbered uncompressed raw directory filesystems) using:
Code: Select all
w_altNN=<wherever you want to store your NNmodules on your system>
same format (using UUID or LABEL and so on) thereafter as for w_changes.
--------------------------------------------------------------------
The shell script init code that accomplishes all of the above, in latest dev build, is conveniently accessible in w_init file, which is immediately editable by geany since not hidden away inside the cpio compressed initrd itself. Rather, w_init is a user-editable text file stored in same directory as the vmlinuz and initrd boot files.
I suppose I should code the whole thing in C, just for the hell of it (any extra 'speed' gain hardly human noticable), but I'm trying to encourage others to develop their own WeeDogLinux variants and so have designed the system to use as simple shell scripting as possible along with strong support for user-contributions via plugins. Similarly, these w_changes and w_altNN options are included to make the system as user-managable/flexible as I could make possible.
Whether I have or will succeed making WeeDogLinux a relatively easy, extremely modular, build and frugal bootable system to develop/contribute-to by even non-guru-type community developers and aspiring developers, I don't know, but I try to keep it all as open and simple to read and work with as possible anyway (no git knowledge required for user-development activities - though I do use git myself during the original code creations).
wiak