FrugalPup v41, very flexible Puppy frugal installer, supporting i18n

Moderator: Forum moderators

d-pupp
Posts: 184
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 91 times
Been thanked: 40 times

Re: FrugalPup v40, very flexible Puppy frugal installer, supporting i18n

Post by d-pupp »

I'm not sure how to respond to this??

And strangely, here is a quote from a grub.cfg menuentry generated by FrugalPup a long time ago:

I was just relating how I got microcode working for me.
My version of Fossapup 64 9.5 didn't install or use microcode and Vanilladpup doesn't have a hard drive installer. I didn't even know what microcode were until I read about them on the forum here. So I decided to try and get it working for me.

gyrog
Posts: 594
Joined: Thu Oct 01, 2020 8:17 am
Location: Australia
Has thanked: 14 times
Been thanked: 180 times
Contact:

Re: FrugalPup v40, very flexible Puppy frugal installer, supporting i18n

Post by gyrog »

@d-pupp, don't sweat it.
It's just paranoid me reminding folk that if a Puppy is installed with FrugalPup, support for microcode loading via initrd is already there in the generated grub.cfg menuentry.

gyrog
Posts: 594
Joined: Thu Oct 01, 2020 8:17 am
Location: Australia
Has thanked: 14 times
Been thanked: 180 times
Contact:

Re: FrugalPup v41, very flexible Puppy frugal installer, supporting i18n

Post by gyrog »

FrugalPup v41 is available.

FrugalPup v41, DiskPup v41, StickPup v41 and f2StickPup v41 - Puppy frugal installer.
Along with e3StickPup v41 and e4StickPup v41.

'frugalpup_41.sfs'(3 MiB) or 'frugalpup-41.pet'(3 MiB) or 'FrugalPup_AppDir-41.tar.gz' can be downloaded from https://www.mediafire.com/folder/rdyc5l ... /frugalpup.

There is only 1 change in this version,
When installing Puppy files, it will now copy any 'ucode.cpio' found in the release ".iso" file, into the install directory.
(a 1 line change)
It is a change to a "back-end" script, so all utilities in the FrugalPup suite, should be changed.

Sorry folks, that it has taken all this time for the penny to drop, that this file might be include in a Puppy release,
and not a file peculiar to my CPU, that I would have to search out and download.

User avatar
peebee
Posts: 1480
Joined: Mon Jul 13, 2020 10:54 am
Location: Worcestershire, UK
Has thanked: 147 times
Been thanked: 596 times
Contact:

Re: FrugalPup v41, very flexible Puppy frugal installer, supporting i18n

Post by peebee »

Builder of LxPups, SPups, UPup32s, VoidPups; LXDE, LXQt, Xfce addons; Chromium, Firefox etc. sfs; & Kernels

gyrog
Posts: 594
Joined: Thu Oct 01, 2020 8:17 am
Location: Australia
Has thanked: 14 times
Been thanked: 180 times
Contact:

Re: FrugalPup v41, very flexible Puppy frugal installer, supporting i18n

Post by gyrog »

@peebee, Thanks.

gyrog
Posts: 594
Joined: Thu Oct 01, 2020 8:17 am
Location: Australia
Has thanked: 14 times
Been thanked: 180 times
Contact:

Re: FrugalPup v41, very flexible Puppy frugal installer, supporting i18n

Post by gyrog »

In another topic on this forum, there is a report of a computer having difficulties after using FrugalPup v41 to install a Puppy containing a 'ucode.cpio' file. It seemed that the subsequent load of the micro-code at boot, failed.
The issue seems to have been resolved with a fresh manual install of the 'ucode.cpio' file.

So, wondering if FrugalPup was somehow mucking up the copy of 'ucode.cpio', I did a fresh install of the same Puppy using FrugalPup v41.
The following micro-code load on boot, worked fine on my machine.

If anyone else has problems with micro-code loading after a FrugalPup v41 install of a Puppy that includes 'ucode.cpio',
please report them here.

Although I have no idea how FrugalPup v41 could be responsible, because it's the same line of code that copies each of the files,
'ucode.cpio' is just another entry in a list of files that need to be copied if they exist in the source.

I could possibly replace the "cp" command inside a loop, with creating a list of files that are needed and exist, and use "tar" to copy them all.

But I will wait to see if there is a possible problem.

User avatar
bigpup
Moderator
Posts: 6272
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 733 times
Been thanked: 1293 times

Re: FrugalPup v41, very flexible Puppy frugal installer, supporting i18n

Post by bigpup »

As the person that reported this problem.
I too am not sure exactly what was causing it.

Some times with computers stuff just happens :thumbdown: :roll:

I do wonder if all that stuff in the grub.cfg entry is really needed to get it all loaded correctly. :idea:

menuentry "Puppy dpup 10.0.2" {
insmod ext2
search --no-floppy --fs-uuid --set=root b0f092c5-6a1c-4e04-b9d8-ddbeb91d4ab7
echo "Loading vmlinuz"
linux /bookworm10.0.2/vmlinuz pmedia=usbhd pdrv=b0f092c5-6a1c-4e04-b9d8-ddbeb91d4ab7 psubdir=/bookworm10.0.2 pfix=fsck,fsckp,trim TZ=EST5EDT,M3.2.0,M11.1.0
if [ -e /bookworm10.0.2/local-initrd.gz ]; then
set local_rd=/bookworm10.0.2/local-initrd.gz
else
set local_rd=
fi
if [ -e /bookworm10.0.2/ucode.cpio ]; then
set ucode_rd=/bookworm10.0.2/ucode.cpio
echo "Loading ucode.cpio and initrd.gz"
else
set ucode_rd=
echo "Loading initrd.gz"
fi
initrd $ucode_rd /bookworm10.0.2/initrd.gz $local_rd

.
Sure seems like a lot of extra commands just to get the ucode.cpio file used.

Or are they needed for Puppy versions that do not have a ucode.cpio file?

This topic seems to indicate the grub command, could be very simple, to use the ucode.cpio.
https://oldforum.puppylinux.com/viewtop ... 5#p1030115

If I really understood what was really needed to get ucode.cpio used, I would offer to help tweak the commands.
Well I can help to test.

Forum Global Moderator
The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

gyrog
Posts: 594
Joined: Thu Oct 01, 2020 8:17 am
Location: Australia
Has thanked: 14 times
Been thanked: 180 times
Contact:

Re: FrugalPup v41, very flexible Puppy frugal installer, supporting i18n

Post by gyrog »

@bigpup ,
The grub.cfg entry is as long winded as it is so that either a 'ucode.cpio' or a 'local-initrd.gz', or both, can be added to an install that did not initially include either, and grub will do the appropriate thing.
Only an 'initrd.gz' is required, the other 2 are optional.

Yes, FrugalPup could simplify the entry if it copied a 'ucode.cpio' file to the install directory.
But then your test without the 'ucode.cpio' file would have failed at the 'grub' stage.

The current way looks "bloated", but it provides flexibility.

geo_c
Posts: 2502
Joined: Fri Jul 31, 2020 3:37 am
Has thanked: 1799 times
Been thanked: 705 times

Re: FrugalPup v41, very flexible Puppy frugal installer, supporting i18n

Post by geo_c »

Used v41 yesterday in F96 to load grub2 on a USB ssd drive. Worked wonderfully. It also gave me good boot stanzas for F96 and fossapup. Then I copied my Kennel Linux grub2 boot stanzas into the grub.cfg and all worked perfectly.

Thanks for the update.

geo_c
Old School Hipster, and Such

gyrog
Posts: 594
Joined: Thu Oct 01, 2020 8:17 am
Location: Australia
Has thanked: 14 times
Been thanked: 180 times
Contact:

Re: FrugalPup v41, very flexible Puppy frugal installer, supporting i18n

Post by gyrog »

@geo_c,
Glad to hear that it works for you.

And you are welcome.

User avatar
trawglodyte
Posts: 236
Joined: Mon Dec 11, 2023 11:32 am
Location: my cave
Has thanked: 234 times
Been thanked: 72 times

Re: FrugalPup v41, very flexible Puppy frugal installer, supporting i18n

Post by trawglodyte »

What I'm doing is a bit different than described above, but I think is sound. Consider the following scenario
You have one EFI partition. You want to boot to play with some puppies. You either make a partition or have a blank USB for them, doesn't matter.
You install BookwormPup64_10.0.4 FIRST, doing the Settings, Puppy, AND Boot part of FrugalPup Installer to write the .efi's and cert to the EFI partition.
When you add additional Pups you do the Settings and Puppy part of FrugalPup Installer to copy the files from the iso to a new folder on your usb or hard drive partition. but you DON'T do the Boot part. You DO NOT write anything to the EFI partition.
Instead, you go back to BookwormPup64_10.0.4 and do FrugalPup Installer > Boot choosing only to update the .config file.
This way BookwormPup64_10.0.4 always remains in control of the Puppy grub, and BookwormPup64_10.0.4 is the only puppy.cer necessary on the EFI partition. Simply updating the config tells it where to find vmlinuz and initrd.gz for any other pups you want to add, and puts the new pups in your Puppy grub menu.

Screenshot.png
Screenshot.png (100.43 KiB) Viewed 614 times
Screenshot(1).png
Screenshot(1).png (38.88 KiB) Viewed 614 times

So far I have only installed BookwormPup64_10.0.4 and added FossaPup64_9.5, but I think my logic is sound.
I DID do a ton of experimentation beforehand to come up with this method.
It may sound confusing, but it only takes 5 minutes to do this once you wrap your head around it.
You can sweeten the deal by using BookwormPup to install rEFInd, which gives you nice graphical interface at startup to go to your Puppy grub, to Windows Boot Manager, to other Linux grubs, to a Ventoy stick. whatever you got on your system right there for you every time you reboot or startup.

Like a monkey trying to fly a space-ship. What's this button do?
Like a 12-yr old trying to wire a house. Gonna get zapped!

User avatar
trawglodyte
Posts: 236
Joined: Mon Dec 11, 2023 11:32 am
Location: my cave
Has thanked: 234 times
Been thanked: 72 times

Re: FrugalPup v41, very flexible Puppy frugal installer, supporting i18n

Post by trawglodyte »

I have one minor thing to add. When I use FrugalPup Installer from BookwormPup64_10.0.4 to write to the EFI. The grub.cfg it creates always has <pmedia=usbflash> which is specified by me in the Settings. But it also writes <pmedia=usbhd>. This prevents me from using pupmode 13 and puts me in pupmode 12 unless I manuallly edit the grub.cfg on the EFI partition. Removing <pmedia=usbhd> from the kernel line.

Like a monkey trying to fly a space-ship. What's this button do?
Like a 12-yr old trying to wire a house. Gonna get zapped!

gyrog
Posts: 594
Joined: Thu Oct 01, 2020 8:17 am
Location: Australia
Has thanked: 14 times
Been thanked: 180 times
Contact:

Re: FrugalPup v41, very flexible Puppy frugal installer, supporting i18n

Post by gyrog »

trawglodyte wrote: Fri Jan 19, 2024 2:21 am

When you add additional Pups you do the Settings and Puppy part of FrugalPup Installer to copy the files from the iso to a new folder on your usb or hard drive partition. but you DON'T do the Boot part. You DO NOT write anything to the EFI partition.
Instead, you go back to BookwormPup64_10.0.4 and do FrugalPup Installer > Boot choosing only to update the .config file.

If you are running "FrugalPup -> Puppy" to setup the Puppy install directory, why not use the "Boot" facility in the same FrugalPup to "replace" or "append" the grub2 config file?

The important thing here is that "FrugalPup -> Boot" can be used to only update the grub2 config file, without installing grub2.
This feature should definitely be used when installing additional Puppies.

gyrog
Posts: 594
Joined: Thu Oct 01, 2020 8:17 am
Location: Australia
Has thanked: 14 times
Been thanked: 180 times
Contact:

Re: FrugalPup v41, very flexible Puppy frugal installer, supporting i18n

Post by gyrog »

trawglodyte wrote: Fri Jan 19, 2024 1:47 pm

When I use FrugalPup Installer from BookwormPup64_10.0.4 to write to the EFI. The grub.cfg it creates always has <pmedia=usbflash> which is specified by me in the Settings.

How do you do this?
I'm guessing that you edit the "kernel boot parameters" line in "FrugalPup -> Settings".
If so, this was designed for "kernel boot parameters" not "Puppy boot parameters".
The resultant boot parameters are simply copied, without any processing, into the grub2 "linux" line.

trawglodyte wrote: Fri Jan 19, 2024 1:47 pm

But it also writes <pmedia=usbhd>. This prevents me from using pupmode 13 and puts me in pupmode 12 unless I manuallly edit the grub.cfg on the EFI partition. Removing <pmedia=usbhd> from the kernel line.

Yes, the current FrugalPup always generates a "pmedia=" Puppy boot parameter that reflects the hardware containing the install directory.
FrugalPup also assumes that you might edit the "grub.cfg", if only to change the order of the entries for the menu.

How to change, that is the question?
Could possibly change the "Pfix boot paramaters" to a "Puppy boot parameters" dialog.
Add extra stuff to choose beetween "direct"(pupmode=12), "indirect"(pupmode=13) or "none"(no preference), save mechanism preference, with explanations.

I've never been a fan of having to boot "pmedia=???flash" to get pupmode=13.
There should be a way to specify this no matter what the "pmedia=" boot parameter.
Maybe a "pfix=indirect" or "pfix=pm13" boot parameter?

User avatar
trawglodyte
Posts: 236
Joined: Mon Dec 11, 2023 11:32 am
Location: my cave
Has thanked: 234 times
Been thanked: 72 times

Re: FrugalPup v41, very flexible Puppy frugal installer, supporting i18n

Post by trawglodyte »

gyrog wrote: Mon Jan 22, 2024 1:13 pm

If you are running "FrugalPup -> Puppy" to setup the Puppy install directory, why not use the "Boot" facility in the same FrugalPup to "replace" or "append" the grub2 config file?
This feature should definitely be used when installing additional Puppies.

You're right, that would be better so long as you only use FrugalPup_installer>Boot to change grub.cfg. It's not as foolproof as I thought to return to BookwormPup to do it either. I just added Fatdog64_90, for example, and doing it that way didn't add an entry, so I did it manually.

There's also an issue with Ventoy (this has nothing to do directly with Puppy Linux) but when I click a puppy.iso I want to install it loads the existing Puppy grub instead. It does this unless I rename the grub.cfg on the EFI partition grub.cfg.bak or something. But then I lose my Puppy grub until I rename it back.

I was super-hyped up when I realized between BookwormPup64, rEFInd, and Ventoy there was this super-easy step-by-step way for someone to install BookwormPup and set up a multi-boot w/ Windows, and other Linux OS's and/or Ventoy. But I'm finding some kinks in it now through further experimentation.

I don't necessarily think it's a bad thing that you have to read and work a little to get pupmode 13. I'm just telling you as a newb to Puppy Linux and someone who hasn't been doing Linux very long I saw the additional boot paramaters .txt on the partition where I put the frugal install. It had pmedia=usbflash, and it took some head-scratching before I figured out to also look at the grub.cfg on the EFI partition. Not all bad, makes newbs like us feel like we're doing serious hacking and causes us to read and learn about the difference between pupmode 12, 13, 5 etc....

Like a monkey trying to fly a space-ship. What's this button do?
Like a 12-yr old trying to wire a house. Gonna get zapped!

gyrog
Posts: 594
Joined: Thu Oct 01, 2020 8:17 am
Location: Australia
Has thanked: 14 times
Been thanked: 180 times
Contact:

Re: FrugalPup v41, very flexible Puppy frugal installer, supporting i18n

Post by gyrog »

@trawglodyte, Thanks for your persistence.
Just a couple of comments:

1) The whole pupmode=13 thing is more obscure than in needs to be, and that should change.

2) Ventoy does not play nicely with booting Puppy ISO files, I suggest you don't do it.
( It inserts a "pmedia=" line in the 'init' script in 'initrd.gz', which ends up confusing the 'shutdownconfig' script on first shutdown.)

User avatar
bigpup
Moderator
Posts: 6272
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 733 times
Been thanked: 1293 times

Re: FrugalPup v41, very flexible Puppy frugal installer, supporting i18n

Post by bigpup »

Edit of topic posts.

I moved some posts to other locations, because they had nothing to do with Frugalpup Installer.

Please keep this topic only about Frugalpup.

Thanks!

Forum Global Moderator
The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Post Reply

Return to “Install”