Remaster a Puppy Linux ISO File Manually
How to Remaster a Puppy Linux ISO File Manually
Assuming that one has made an installation of the ISO file that one wants to modify, proceed with the following procedure.
Copy the existing file system to a working directory, e.g. for a frugal installation:
Code: Select all
mkdir -p /mnt/home/workingdirectory
cp -a /initrd/pup_ro2/* /mnt/home/workingdirectory
Modify the contents of the working directory to one's requirements, e.g. by inspecting the contents of the personal storage save folder or file (either/initrd/pup_rw
for pupmode 12 or /initrd/pup_ro1
for pupmode 13) and then copying from there the directories /etc
, /root
, /usr
and /var
WARNING: if the ISO file is for wide distribution one must be selective as to what is copied from those directories
Create the SFS file of the modified file system, e.g.:
Code: Select all
mkdir -p /mnt/home/remasterdirectory
cd /mnt/home
mksquashfs workingdirectory remasterdirectory/puppyremaster.sfs -noappend
Copy any necessary files to /mnt/home/remasterdirectory
from the original ISO file (or optical disc) so as to create a complete and new ISO file:
Code: Select all
cd /mnt/home
mkisofs -b isolinux.bin -c boot.cat -D -l -R -v -V "Puppy Linux remaster" -no-emul-boot -boot-load-size 4 -boot-info-table -o "newpuppy.iso" remasterdirectory
If using a /boot
directory in /remasterdirectory/boot
the mkisofs
command would look like this example:
Code: Select all
mkisofs -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -D -l -R -v -V "Puppy Linux remaster" -no-emul-boot -boot-load-size 4 -boot-info-table -o "newpuppy.iso" remasterdirectory
isohybrid newpuppy.iso