Script to edit boot options on a Puppy Linux ISO

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

Script to edit boot options on a Puppy Linux ISO

#1 Post by Scooby »

This is primarily a helper for those that use Easy2Boot USB described here and here

OBS! added new option -i gives user a choice iof manually edit .cfg files
With -i psavemark boot option will not be added automatically!


There was a problem with savefiles not found using this method. Worth to mention is that in ArchPup savefile works fine without intervention!
The problem can be fixed in most puppies by booting with parameter psavemark set to the number of the partition with the savefile.

This can be done at boot time by hitting F2 and then start with

Code: Select all

puppy psavemark=1
But doing this at every boot soon becomes tedious so I created a script
to automate the process. The script can be downloaded at the bottom of the post.
After uncompressing you may have to give it right to execute by

Code: Select all

chmod +x PSaveMarkelyfy

This bash script works by adding psavemark parameter to a puppy linux ISO.

You execute it with ./PSaveMarkelyfy file
file is an absolute path to the puppy ISO file

Example:

Code: Select all

./PSaveMarkelyfy /mnt/sdb1/_ISO/Linux/AUTO/precise-5.4.3.iso 
The script will backup your ISO in a .bak file. Just remove extension .bak if you want it back.
The script will append boot option psavemark to isolinux.cfg file.

If your savefile is located anywhere else than first partition you can set the number of the
partition where it is located with the n option.

Example:

Code: Select all

./PSaveMarkelyfy -n 2  /mnt/sdb1/_ISO/Linux/AUTO/precise-5.4.3.iso 

The savefile must be placed on USB, not on internal hard drive.

Most puppies work but not all!

To remedy this a new option -i was implemented.It gives user a choice of manually edit .cfg files
With -i psavemark boot option will not be added automatically!

Example

Code: Select all

./PSaveMarkelyfy -i  /mnt/sdb1/_ISO/Linux/AUTO/precise-5.4.3.iso 


Problem pups.

pussy-base-beta-preview2.iso - uses a file called live.cfg instead.


fatdog - has isolinux.cfg but has its own searchsystem.

lighthouse - has isolinux.cfg but different setup

There probably are more. These puppies could probably be made to work
by manually editing. I recommend using the -i option for these.
Attachments
PSaveMarkelyfy.gz
Bash script for appendin boot parameter psavemark to the file isolinux.cfg in
a puppy linux ISO.
(1.71 KiB) Downloaded 345 times
psavemarkelyfy.jpg
Showing a succesful execution.
(161.87 KiB) Downloaded 437 times

Post Reply