_These instructions are condensed and simplified from the guide at https://help.ubuntu.com/community/LiveCDCustomization. Other information, like regional defaults, or changing the kernel used, can be found in that more complete guide._
1. Make sure you have squashfs-tools and genisoimage
`sudo apt install squashfs-tools genisoimage`
2. Extract the iso contents into a folder
```
mkdir mnt
sudo mount -o loop _iso filename_ mnt
mkdir extract-cd
sudo rsync --exclude=/casper/filesystem.squashfs -a mnt/ extract-cd
5. (Optional) If you want to remove some of the installed software, to shrink the volume:
```
dpkg-query -W --showformat='${Installed-Size}\t${Package}\n' | sort -nr | less
```
This will give you a list of installed apps sorted by size. Remember to `purge` any apps you remove. Alternatively, you can `rm-rf /tmp/* ~/.bash_history`.
6. ####Make all of the changes to the installed software and configuration here.
6. Unmount the volumes from within the chroot
```
umount /proc || umount -lf /proc
umount /sys
umount /dev/pts
```
Note that if `umount /proc` fails it will cascade to the bruteforce `umount -lf /proc`