To preface, I do not know what “linux-live-kit” is. It sounds as though this tool is making assumptions while checking for (or using) deprecated tools. If the script that you’re running is looking for mkisofs, install xorriso. If it’s asking for genisoimage, you will need to install epel-release and then install genisoimage after.
With that said, kickstarts and livemedia-creator
are what we support as that is how we create our live images. Our kickstarts repo contains quite a few kickstarts which you can modify and instructions on making live images using livemedia-creator. The live kickstarts are any of these:
- Rocky-9-Workstation.ks
- Rocky-9-Workstation-Lite.ks
- Rocky-9-XFCE.ks
- Rocky-9-KDE.ks
- Rocky-9-MATE.ks
- Rocky-9-Cinnamon.ks
You can add packages under %packages
and run arbitrary commands/scripts in %post
as you desire. Follow the instructions on the README on building the ISO and then you can test it.
As an example, let’s say I wanted to build a workstation live image, but I wanted to make sure I had a few extra packages available.
I install epel-release and mock
$ dnf install epel-release -y
$ dnf install mock -y
I need to add my user to the mock group so I can use mock. After adding myself to the group, I have to logout and back in.
$ sudo usermod -a -G mock user
Now I can run mock and create the build environment. Note that selinux has to be temporarily disabled for the live process to work properly.
$ mock -r rocky-9-x86_64 --init
$ mock -r rocky-9-x86_64 --install lorax-lmc-novirt vim-minimal pykickstart git
$ setenforce 0
Now I can enter the build environment.
$ mock -r rocky-9-x86_64 --shell --isolation=simple --enable-network
Once I’m in, I clone the git repo.
$ git clone https://github.com/rocky-linux/kickstarts -b r9
I’ll modify the kickstart using vi
. I’ll add the packages I want to the end of the packages
section, right before %end
.
$ cd kickstarts
# Open the kickstart and look for %packages
$ vi Rocky-9-Workstation.ks
%packages
. . .
epel-release
thunderbird
tmux
zsh
%end
Now I can create the live image.
$ livemedia-creator --ks Rocky-9-Workstation.ks \
--no-virt \
--resultdir /var/lmc \
--project="Rocky Linux" \
--make-iso \
--volid Rocky-Workstation-9 \
--iso-only \
--iso-name Rocky-Workstation-9-x86_64.iso \
--releasever=9 \
--nomacboot
The ISO can then be found in: /var/lib/mock/rocky-9-x86_64/root/var/lmc
.