walkthrough

Clonezilla Custom Live ISO

Introduction

Create a Live ISO version of Clonezilla with personal customizations. A bootable ISO will be produced with options to:

In this guide I will adopt 3 custom files for the boot and 1 custom script to be embeded

File Description
grub.cfg Custom version of the clonezilla released one
isolinux.cfg Custom version of the clonezilla released one
syslinux.cfg Custom version of the clonezilla released one
ocs-custom Custom Script

Steps

Preparations

Download in this folder the latest available Zip version; for personal choices I opted for:

Install the required software

sudo apt-get update
sudo apt-get install squashfs-tools xorriso

Create a variable with the name and version for an easy future update

myfile=clonezilla-live-2.6.7-28-amd64

Create subfolders to keep all organized

mkdir -p ./custom/{zip-tmp,squashfs-tmp}

Operations

Unzip the downloaded zip file

unzip "$myfile".zip -d ./custom/zip-tmp`

Unpack the original filesystem.squashfs

sudo unsquashfs -d ./custom/squashfs-tmp/squashfs-root/ ./custom/zip-tmp/live/filesystem.squashfs

Include the custom script ocs-custom in the new filesystem.squashfs

sudo cp ./cfg/ocs-custom ./custom/squashfs-tmp/squashfs-root/usr/sbin/ocs-custom
sudo chmod 755 ./custom/squashfs-tmp/squashfs-root/usr/sbin/ocs-custom

Create the custom filesystem.squashfs and replace the old one

sudo rm -rf ./custom/squashfs-tmp/filesystem.squashfs.new
sudo mksquashfs ./custom/squashfs-tmp/squashfs-root ./custom/squashfs-tmp/filesystem.squashfs.new -b 1024k -comp xz -Xbcj x86 -e boot -info -check-data
sudo cp ./custom/squashfs-tmp/filesystem.squashfs.new ./custom/zip-tmp/live/filesystem.squashfs

Update the loader menu files; the main changes are:

References

  1. The boot parameters for Clonezilla live
  2. How can I add a program in the main file system of Clonezilla live?
  3. How can I create Clonezilla live iso file from clonezilla live zip file?