puppylinux-woof-CE / woof-CE

woof - the Puppy builder
GNU General Public License v2.0
382 stars 273 forks source link

Loopback - generate an enhaned grub2 loopback.cfg file #4199

Closed gyrog closed 4 months ago

gyrog commented 7 months ago

This modifies the script code that generetes grub.cfg and loopback.cfg files.

The loopback.cfg now boots Puppy with "img_dev=" and "img_loop=" boot parameters. The 'isoboot' script in initrd.gz, is already capable of handling these parameters. The "img_dev=" parameter is the UUID of the partition that contains the ISO file. So if it is provided, the 'isoboot' script does not have to search the partitions for the ISO file.

The code that generates the grub.cfg file has mainly been modified to fit with the approach taken for loopback.cfg. It's functionality has not really changed, except it now displays a message indicating if ucode.cpio and initrd.gz or just initrd.gz, has been loaded.