We have a distro, Lubuntu 16.04, which we want to pack with a concrete SW, ToolboX (util/deb/toolbox_1.0-1.deb
will install Geany
, LaTeX
packages, GNU Octave
, etc., some extra 1.2GB, overall). Now, we have a functional installation and want to produce a persistent live version out of it, so that users (children, mostly without Linux knowledge) can easily burn a USB stick and start using it, keeping track of WIFI password and local files.
First thing I've tried is to produce an ISO with systemback
, which works nicely after been copied (dd
) to an USB stick. Problem is that systemback
won't add persistence. Following these instructions, I've tried to add persistence to the stick, but it fails for some reason (it works well with an original Lubuntu ISO, but doesn't work for the ISO generated by systemback
). Even if it would, this produces the stick itself, but the goal is to have an ISO that, when copied, provides a persistent version of the customized distro.
What are the alternatives out there to end up with this ISO?
Best Answer
The following approach will work:
Create a persistent live drive with mkusb according to the following links
help.ubuntu.com/community/mkusb
help.ubuntu.com/community/mkusb/persistent
Boot into the persistent live system
Install your software into the persistent live system
Make a cloned image of the whole drive.
If you give the image file the extension
img
(filename.img
), or a compressed cloned image with gzip or xz compression, (filename.img.gz
orfilename.img.xz
). Flash this image to new pendrives or memory cards.In Ubuntu you can use mkusb.
In Windows you can use Win32 Disk imager.
This is similar to how the images at this link were created,
Compressed image file with a persistent live system
An alternative method to distribute your system would be to backup the
casper-rw
partition with your tweaks, and to restore it into 'standard' persistent live systems (made by mkusb but without tweaks).Backup and restore of persistent overlay data
I downloaded the iso file made with Systemback. mkusb complained, that it was not an Ubuntu family or Debian iso file. But with the setting
usb-pack-efi
mkusb created a persistent live drive. So the solution was easier than I could imagine :-)