trawglodyte wrote: ↑Wed Jun 19, 2024 8:30 pm
I was puzzling over this a bit, trying to think of how the kernel paramater pmedia=cd could possibly cause this. Why putting it on one frugal would work fine, but doing more installs would be an issue. ... I'm fairly certain nothing like that can happen this way.
As you said subsequently to this quote, you have put the boot locations in the stanza, and of course that works. A cd would have a "stock" bootloader already written on it, with no locations other than it's own. Now I'm no expert, and maybe since many are using iso's in place of cd, then the cd parameter is the logical choice to boot an iso, but when it comes to booting USB or internal hard drive, a cd parameter also works as long as the directory and partition locations are specified correctly in grub, then of course it's probably fine, and this is what you have done, which is why I mentioned that it's the point of your template to do exactly that, specifiy the boot locations.
So that was extremely helpful of you.
What I'm pointing to in terms of having that parameter in the stanza for perpertuity, is that if the stanza is changed so that it's searching for save and boot locations rather than being pointed directly to them, then I think the parameter becomes dicey.
That's all I'm saying. If someone fiddles with the stanza and has that parameter, they might get a "hybrid" boot of files from different locations if they have drives with puppy files attached to their system while booting.
And it happens.
It happened to me when I had setup a boot on an sd card, and also had a hard drive install, and a usb install inserted. I got files loaded from different drives. I was puzzled, but then it all made sense when I thought about it. Again I was running F95 and not F96 or Bookworm or newer. So I can not vouch that things haven't changed since F95. (edit: this is back when my understanding of boot stanzas was still very weak, so I probably had them written all goofy.)
Being that you are setting some one up for a first boot, the cd parameter is probably not much of a risk, but it makes sense to change it if you aren't actually booting a cd or iso, but instead booting from some other medium.
Like I said, it's not a big issue, but when you can change a line here or there to "clean it up" even more, it doesn't hurt to consider it.
trawglodyte wrote: ↑Wed Jun 19, 2024 8:30 pm
This is something I've studied quite a bit. I don't think I have it mastered yet. But there's some interesting possibilities. You could have essentially a "dummy" Linux just to give you a grub. From a Puppy frugal you could edit it's /boot/grub/custom.cfg and install another frugal. I'm also certain you could write some scripts or small apps that could take an .iso and install it for you this way with only a couple prompts. Find the UUID for you, write the menuentry in the custom.cfg.
This method is in fact how I do all my installs. I load a boot loader with any linux installed so the bootloader writes a config, or menu.lst, a grub or a grub2, doesn't matter. Once it's there, you just copy more OSs to directories and paste the boot stanzas into it and type or paste the UUIDs of your drives and partitions, type in the path, and that's all it takes.
My grub configs don't have any of the original stanzas written to them when the bootloader was first installed. I delete entire OSs and copy in new OS directories to the drives and re-write the stanzas. So in other words, my bootloader was loaded like 7 years ago or something, none of the original OSs or files are still on the hard drive except the bootloater. The grub entries are entirely new. I suppose it depends on the tool you use to load grub as to what it would need to see to consider an OS being there. I'm not knowledgeable enough about it to know, maybe a vmlinuz, somekind of initrd, and?
Kennel Linux, KLV, KLA, KLU, has a script similar to what you describe, called wd_grubconfig, you run it from the OS directory and it gives you the stanzas to boot that OS, grub or grub2, either by UUID or by drive/path. They work everytime. But they're all basically the same, so I often don't run it. I just copy a stanza and change the name of the OS and location in the stanza.
So if you took a script like that, and just put a mount iso and copy files section in front that copies to a prompted location, then run the config boot stanza section, it could even insert it into the grub config, but I would lean toward just manually copying it in, as my rewrite file insertion scripting skills are pretty weak.
trawglodyte wrote: ↑Wed Jun 19, 2024 8:30 pm
It's also interesting to me to realize if a dev doesn't need all the boot stuff in their .iso it would make developing a Puppy Linux distro significantly easier. I'm not sure if that's practical for your top distros though, as people want to use the .iso in a variety of ways. Anyway, there's a lot of unexplored territory there. The various ways which involve writing to EFI are all interesting too.
Devs and forum members spend an inordinate amount of time dealing with all the available methods to boot. There are so many. Again I think the KL script giving you stanzas makes a lot of sense. They also try to make sure the iso's boot from iso booters. But I don't mess with those. I like bare metal installs.