You can change the Erase Station ISO and build a new one from it. You might add bundles to a CD or DVD, or change the options the boot menu starts with. The ISO carries its own script for this, mkgriso, at the top of the ISO. It runs on Linux and needs xorriso, which Erase Station includes.
These steps are for the PC ISO. The ARM ISO is built another way and has no mkgriso.
1. Copy the ISO’s Files
As root, in the folder that holds the ISO, copy its files into a folder named cdrom. Use the name of your ISO in the second line:
mkdir /tmp/cdrom
mount -o loop pmagic_26.11_3.iso /tmp/cdrom
cp -a /tmp/cdrom .
umount /tmp/cdrom
chmod -R u+w cdrom
2. Make Your Changes
Change what you need inside the cdrom folder. For example:
- Put bundles in
cdrom/pmagic/pmodulesto load them at every start, or incdrom/pmagic/optionalsto load them only withoload=. Adding Programs lists what can go there. - The boot menus are
cdrom/boot/grub/grub.cfgfor UEFI computers andcdrom/boot/grub/bios.cfgfor BIOS computers.
3. Build the New ISO
sh cdrom/mkgriso
It writes the new ISO next to the cdrom folder, with a T added to the name, such as pmagic_26.11_3T.iso. To choose the name, add it to the line: sh cdrom/mkgriso my-pmagic.iso.
Good to Know
- The new ISO starts the same ways the original does, on BIOS and UEFI computers and with Secure Boot on.
- The Erase Station USB Installer writes it like the original.
- Its checksum is new. Keep your own checksum of it if you need one.
