Linux Live Kit
==============
Use this set of scripts to turn your existing preinstalled Linux
distribution into a Live Kit (formely known as Live CD).
Make sure to extract and use it on a posix-compatible filesystem,
since it creates some (sym)links and such.
Note:
* Store Linux Live kit in a directory which is not going to be included
in your live distro, else it would be copied to it. Best practice is to
make a directory such as /a and put these scripts there.
Be warned, if you put it to /tmp, some distros may erase it on reboot.
* Before you start building your Kit, edit the file ./config
Most importantly change the LIVEKITNAME variable.
* Make sure your kernel is in /vmlinuz or change the path in ./config
Your kernel must support squashfs. Your kernel must also support either
aufs or overlayfs or both. AUFS is recommended for more flexibility,
but if your distro does not support it, overlayfs will work too.
* You may also wish to replace boot graphics in ./bootfiles/bootlogo.png
(one options is to modify and run the ./tools/bootlogo.update script)
and edit ./bootfiles/grub.cfg to fit your needs. Keep paths in /boot/;
they will be relocated to /$LIVEKITNAME/boot/ during Live Kit creation.
* Linux Live Kit comes with precompiled static binaries in ./initramfs
directory. Those may be outdated but will work. You may replace them
by your own statically linked binaries, if you know how to compile them.
* CD and USB boot with GRUB 2. The build creates BIOS and UEFI loaders
using the GRUB modules installed on your system.
It also bundles GRUB network loaders in boot/grub/net for PXE servers.
Disable Secure Boot when using the generated UEFI loaders.
* If you plan to boot your Live Kit from USB device, you may wish to add
the following boot parameter to the linux lines in grub.cfg:
perch
This parameter activates persistent changes
* If you have tmpfs mounted on /tmp during building your Live Kit ISO,
make sure you have enough RAM since LiveKit will store lots of data in /tmp.
If you are low on RAM, make sure /tmp is a regular on-disk directory.
* When done, run the ./build script to create your Live Kit
- it creates a media tree and scripts to generate ISO and ZIP files in /tmp
- make sure you have enough free space in /tmp to handle it
* For USB boot, copy the /$LIVEKITNAME directory from the ISO to the USB.
On Windows, run $LIVEKITNAME/boot/bootinst.bat.
On Linux, run sh $LIVEKITNAME/boot/bootinst.bat.
The installer requests administrator rights and sets up booting without
formatting the drive. Windows XP and later use VBScript; Linux needs GRUB tools.
USB installation requires FAT12, FAT16 or FAT32.
See DOC/supported_fs.txt for filesystem and disk requirements.
* Slax-specific instructions are in Slax/README.
* You will need the following packages to be installed:
- squashfs-tools
- GRUB 2 tools and modules for the target firmware platforms
- xorriso
- mtools
- zip
Debian package example for BIOS and amd64 UEFI:
apt install squashfs-tools grub-pc-bin grub-efi-amd64-bin xorriso mtools zip xz-utils
Add grub-efi-ia32-bin if you also need 32-bit x86 UEFI firmware support.
Author: Tomas M. <http://www.linux-live.org>