KLP_firstribit.sh script to use Puppy with FR initrd
To allow focused work/discussion on it, moved script exemplar here from rockedge KLP discussion thread: viewtopic.php?p=97175#p97175
Simplified the originally posted script:
CHANGES 28Aug2023: Removed some old weedogit code that wasn't necessary for this variant.
Attached single build script. It auto downloads the relevant Fossa Puppy iso and completely builds the system and includes save2flash (w_changes=RAM2) capability and tells you exactly what to put in your grub stanza including the w_00modules=lib argument - just copy and paste that into your grub config...
Remember to click Puppy StartMenu > FixMenus once in to get the wd_save2flash icon under StartMenu > Systems
Of course old Puppy remaster utilities are useless here since not for FR initrd overlayfs facilities. Instead use KL/FR utilities and enjoy FR up to 99 addon 2-digit-numbered layers (which can be compressed sfs or normal uncompressed directories).
Old Fossapup64 build is also included. I was too lazy to try it, but unless I made a coding mistake in its build section it should also work fine since used to work via previous old weedogit script.
As I said above, ignore the X not shutdown cleanly junk - fixing that message just needs new shutdown routine relevant to FR initrd operation. For now just employing ultra-simply text-based shutdown generated by ultra-basic /usr/local/bin/wd_exit script.
Attached image is booted Fossa64-Mid, which booted fine but didn't supply enough firmware to connect on my quite modern HP system, but that's a small easy matter to fix. I made the attached image via Fossa64-Mid mtpaint snapshot and then used save2flash so could fetch it later on my Linux Mint system from the KLP upper_changes/root folder... Had it provided sufficient firmware could have posted the image straight from Fossa64-Mid of course.
After removing the dummy tar and making the script executable with chmod +x simply put the script in an empty build directory of your choice (on Linux formatted partition) such as /KLP_whatever and build the immediately bootable system via command:
Code: Select all
./KLP_firstribit-latest.sh
At the end of the build, as I said, the script outputs exact working grub stanzas that can boot it. I recommend using the last of the provided stanzas (the one for grub2 using the UUID it provides. Once you've added that to your grub configuration, simply reboot and try it. Yeah, needs work to make more FR/KL compatible, but not a lot really. Internet connection should work fine as long as the Puppy iso has sufficient modules/firmware to meet your system needs.
FORGOT: If you already have a copy of the relevant iso, and put it in the build directory it will be used without re-downloading. Saves a lot of time... BUT... NOTE WELL the name of the iso must be kept identical to that given in the script (per script lines 17, 18, and 19):
1. F96-CE_4.iso
2. fossapup64-9.5.iso
or
3. fossapup64-9.5-mid-2.iso
You can change say URL02 if you want to attempt to FirstRib/KL some other Puppy iso. No guarantees with others though since depends how parts are arranged in them and recent Vdpups seem to have included code that makes them very far from generic root filesystems (even more tightly tied in to Puppy's own initrd and related distro spec config files/modes and so on) so moving away from being easily firstribbed... Not worth bothering with these later ones in that case - better then to use actual KL designs or variants of mainstream provided root filesystems that also work straight away with the magic FR initrd. Anyway, I don't consider these demonstrations important - just for fun and purely for experimenters who want to play with Puppy filesystem but in KL/FR flexible compressed or uncompressed 99 numbered layer overlayfs frugal installs.
CHANGES 28Aug2023: Removed some old weedogit code that wasn't necessary for this variant.