mirror of
https://github.com/xcp-ng/xcp.git
synced 2026-12-04 01:18:07 +00:00
ISO remastering script for XCP-ng and XenServer
This script allows to produce a customized installation ISO, using "patcher" scripts to automate the task.
Two levels of customization are provided:
--iso-patcherlets you provide a script that will act on the unpacked ISO contents (after which the ISO will be rebuilt from the modified contents)--install-patcherwill similarly unpack theinstall.img(ramdisk root filesystem) and lets you provide a script acting on his contents, from which a newinstall.imgwill be produced and included in the repacked ISO
Example usages are provided in scripts/iso-remaster/samples/
Prerequisites
A few tools are required to run, the script will tell you if you miss some, but you may want to install those first. Depending on your OS you may use something like:
apt-get install fakeroot genisoimage syslinux-utils p7zip-full bzip2
el8 and newer:
dnf install --enablerepo=epel fakeroot genisoimage syslinux p7zip-plugins bzip2
el7:
yum install --enablerepo=epel fakeroot genisoimage syslinux cdrkit-isotools p7zip-plugins bzip2