Hello,
I’m trying to build a customised live image of rockylinux 9.
Unfortunately, I’m running into an issue with anaconda
.
I setup a mock
environment following the guide provided here (I tried the r9
and the r9_ks_fixes
branches) but it always fails with the same error:
2022-10-05 20:23:28,605: anaconda 34.25.0.29-1.el9_0.rocky.0.3 for Rocky Linux 9 (pre-release) started.
2022-10-05 20:23:28,606: 20:23:28 Service org.fedoraproject.Anaconda.Modules.Storage has failed to start: Process org.fedoraproject.Anaconda.Modules.Storage exited with status 1
2022-10-05 20:23:38,619: Running anaconda failed: process '['unshare', '--pid', '--kill-child', '--mount', '--propagation', 'unchanged', 'anaconda', '--kickstart', '/builddir/kickstarts/Rocky-9-Workstation.ks', '--cmdline', '--dirinstall', '--remotelog', '127.0.0.1:34991']' exited with status 1
The error is reproducible by just running:
anaconda --kickstart /builddir/kickstarts/Rocky-9-Workstation.ks --cmdline --dirinstall
Am I missing something?
Best wishes
Christian
Are you following the instructions exactly? Can you show your terminal as you run your commands to try to build your image? We recently built a MATE live image with the same procedure and had no issues.
Hello nazunalik,
thank you for your fast reply. I was able to build the image with livecd-creator
sudo livecd-creator --verbose --config=./Rocky-9-Workstation-Lite.ks --fslabel=Rocky-Workstation-9-Lite-x86_64.iso
But here is the terminal output from my try to build it using livemedia-creator
:
christian@live-installed-rocky ~ % mock -r rocky-9-x86_64 --init
INFO: mock.py version 3.1 starting (python version = 3.9.10, NVR = mock-3.1-1.el9)...
[...]
christian@live-installed-rocky ~ % mock -r rocky-9-x86_64 --install lorax-lmc-novirt vim-minimal pykickstart git
INFO: mock.py version 3.1 starting (python version = 3.9.10, NVR = mock-3.1-1.el9)...
[...]
christian@live-installed-rocky ~ % sudo setenforce 0
christian@live-installed-rocky ~ % mock -r rocky-9-x86_64 --shell --isolation=simple --enable-network
INFO: mock.py version 3.1 starting (python version = 3.9.10, NVR = mock-3.1-1.el9)...
[...]
<mock-chroot> sh-5.1#
<mock-chroot> sh-5.1# git clone https://github.com/rocky-linux/kickstarts
Cloning into 'kickstarts'...
[...]
<mock-chroot> sh-5.1# cd kickstarts/
<mock-chroot> sh-5.1# ls
README.md
<mock-chroot> sh-5.1# git checkout r9_ks_fixes
<mock-chroot> sh-5.1# 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
2022-10-07 10:35:50,602: livemedia-creator v34.9.14-1
2022-10-07 10:35:50,602: selinux is Disabled
/usr/lib/python3.9/site-packages/pykickstart/commands/partition.py:448: KickstartParseWarning: A partition with the mountpoint / has already been defined.
warnings.warn(_("A partition with the mountpoint %s has already been defined.") % pd.mountpoint, KickstartParseWarning)
2022-10-07 10:35:50,648: disk_img = /var/lmc/lmc-disk-57_tw82h.img
2022-10-07 10:35:50,648: Using disk size of 7752MiB
2022-10-07 10:35:50,837: Running anaconda.
2022-10-07 10:35:52,842: Starting installer, one moment...
2022-10-07 10:35:52,843: terminal size detection failed, using default width
2022-10-07 10:35:52,843: anaconda 34.25.0.29-1.el9_0.rocky.0.3 for Rocky Linux 9 (pre-release) started.
2022-10-07 10:35:52,843: 10:35:52 Service org.fedoraproject.Anaconda.Modules.Storage has failed to start: Process org.fedoraproject.Anaconda.Modules.Storage exited with status 1
2022-10-07 10:36:02,856: Running anaconda failed: process '['unshare', '--pid', '--kill-child', '--mount', '--propagation', 'unchanged', 'anaconda', '--kickstart', '/builddir/kickstarts/Rocky-9-Workstation.ks', '--cmdline', '--dirinstall', '--remotelog', '127.0.0.1:36213']' exited with status 1
2022-10-07 10:36:50,920: Install failed: novirt_install failed
2022-10-07 10:36:50,920: Removing bad disk image
2022-10-07 10:36:50,920: ERROR: Image creation failed: novirt_install failed
2022-10-07 10:36:50,921: Image creation failed: novirt_install failed