For some options (such as updating the kernel) you will need a working internet connection as the script needs to download software.Also the script needs to be executable which can be achieved using the 'chmod' command ('sudo chmod 755 isorespin.sh'). mount/umount) which require root access using the 'sudo' command you will initially be prompted for your password and must already have 'sudo' privileges.Now with the introduction of Intel Apollo Lake based mini PCs a new issue has arisen where GRUB simply fails to boot unless the device is one of the few with a BIOS option to select Linux as the OS.Whilst some Linux distros can work OOTB regardless of architecture and bootloader I found that for Ubuntu it wasn't that simple.For example I typically include "ssh openssh-server inxi" when respinning an ISO for personal use.
As different Linux distros have different packages installed by default the script will first check and notify you if any other packages are required.
Although intended to allow local binaries or shell scripts to be saved on the respun ISO there is no limitation on the actual type of file that can be added.
-s or --storage adds a specified amount of persistent storage to the respun ISO.
-k or --kernel replaces the kernel with the version specified by the argument or value which can be any of the Ubuntu Kernel Team kernel builds located at and is passed as the directory or folder name without the trailing '/' (e.g. --rolling-list shows what new kernels are available for the kernel types of release, proposed, testing and unstable and which can be installed using the '--rolling-' option.
All 'rolling' options need the 'curl' package to be installed. This option is very useful in preseeding your ISO with packages you always normally install immediately after booting and will help resolve the issue of the ISO running out of space as a result of multiple installations.