Custom Fedora Live Image // kiwi-ng

Hey everyone. I’m trying to create a custom live image.
I hope this is the correct section of the forum. Bare with me if I’m wrong.


What I want as a result

  • a minimal distro (doesn’t need a desktop environment, the cli is enough)
  • some preinstalled packages (when run the distro won’t have internet access, so no packages can be installed anymore at that time)
  • one or more bash scripts (preferably placed unter /usr/local/bin/)
  • a blob file (preferably placed unter /opt/)

The bash scripts and the blob file are things I provide during the process of building the live ISO.


What I’ve seen and tried before

livemedia-creator as well as livecd-creator both require those kickstart files.

When I’ve looked for those, I found some sources mentioning pagure.io (Overview - fedora-kickstarts - Pagure.io) where it says the project has been retired. However, it also mentiones kiwi-ng. At first glance kiwi-ng looks like a polished version of the process hiding the dirty work.

Apart from the missing kickstart files livemedia-creator as well as livecd-creator don’t seem to be the most recent way of creating a customized live image as far as I understood. So I gave kiwi-ng a try instead.

At this point I’m not even sure if kiwi-ng is the currently expected way of doing what I’m trying to do. :see_no_evil_monkey:


The issues I have with kiwi-ng

kiwi-ng itself mentions this repository on their quick start page, so I thought https://github.com/OSInside/kiwi/blob/main/build-tests/x86/fedora/test-image-live-disk/appliance.kiwi would be a good template to start from.

So, first I created this as for the directory structure:

live-fedora/
├── config.xml
└── root
    ├── etc
    │   ├── selinux
    │   │   └── config
    │   └── sysconfig
    │       └── firstboot
    ├── fastboot
    ├── opt
    │   └── my-blob
    └── usr
        └── local
            └── bin
                ├── my-script-1
                └── my-script-2

These are basically the same as given in the repository:

live-fedora/root/etc/selinux/config

SELINUX=permissive
SELINUXTYPE=targeted 
SETLOCALDEFS=0

live-fedora/root/etc/sysconfig/firstboot

RUN_FIRSTBOOT=NO

live-fedora/root/fastboot

1

As far as I understand config.sh as well as the iso-esp-excludes.yaml aren’t really releavant to me, so I didn’t use them in my project.

My custom content shouldn’t affect how everything works and only show up in the live system later on. So, I don’t think the contents are relevant here. As of now, the files themselves are even empty placeholders, as I want to get the building process working first before adding more stuff.

At this point, the only relevant thing left is the config.xml. For this file as well, I created that similar to the corresponding appliance.kiwi file in the given repo (.kiwi should do the same as config.xml).

As the appliance.kiwi file contains multiple profiles I removed everything that doesn’t seem to be required for my case. So I ended up with this:

<image schemaversion="8.5" name="live-fedora">
  <description type="system">
    <author>My Name here</author>
    <contact>my-email@address.invalid</contact>
    <specification>Fancy Image Name here</specification>
  </description>

  <preferences>
    <version>1.0.0</version>
    <packagemanager>dnf5</packagemanager>
    <bootsplash-theme>charge</bootsplash-theme>
    <bootloader-theme>breeze</bootloader-theme>

    <locale>en_US</locale>
    <keytable>de</keytable>
    <timezone>Europe/Berlin</timezone>

    <rpm-check-signatures>false</rpm-check-signatures>
    <type image="iso" flags="overlay" firmware="uefi" hybridpersistent_filesystem="ext4" hybridpersistent="true" kernelcmdline="console=tty1 console=ttyS0">
      <bootloader name="grub2" timeout="10" output_console="console serial" input_console="serial"/>
    </type>
  </preferences>

  <repository type="rpm-md">
    <source path="obsrepositories:/"/>
  </repository>

  <packages type="image">
    <package name="grub2"/>
    <package name="grubby"/>
    <package name="kernel"/>
    <package name="plymouth-theme-charge"/>
    <package name="grub2-breeze-theme"/>
    <package name="selinux-policy-targeted"/>
    <package name="dhclient"/>
    <package name="glibc-all-langpacks"/>
    <package name="vim"/>
    <package name="tzdata"/>
    <package name="NetworkManager"/>
    <package name="btrfs-progs"/>
    <package name="dracut-kiwi-live"/>
  </packages>

  <packages type="bootstrap">
    <package name="shim" arch="x86_64"/>
    <package name="filesystem"/>
    <package name="basesystem"/>
    <package name="grub2-efi-x64-modules"/>
    <package name="grub2-efi-x64"/>
    <package name="fedora-release"/>
    <package name="shadow"/>
  </packages>

  <packages type="iso">
    <!-- my custom packages here -->
  </packages>
</image>

When I tried to build the image, it complained about the repository definition:

[ ERROR ]: 18:48:50 | KiwiUriStyleUnknown: Only the buildservice can use the obsrepositories schema

I found this thread here: kiwi live fedora 44 xfce iso
They mentioned fedora 44 repos. So, I took those instead:

  <repository type="rpm-md" alias="fedora" sourcetype="metalink">
    <source path="https://mirrors.fedoraproject.org/metalink?repo=fedora-44&amp;arch=x86_64"/>
  </repository>

  <repository type="rpm-md" alias="fedora-updates" sourcetype="metalink">
    <source path="https://mirrors.fedoraproject.org/metalink?repo=updates-released-f44&amp;arch=x86_64"/>
  </repository>

  <repository type="rpm-md" alias="rpmfusion-free" sourcetype="mirrorlist">
    <source path="http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-44&amp;arch=x86_64"/>
  </repository>

  <repository type="rpm-md" alias="rpmfusion-free-updates" sourcetype="mirrorlist">
    <source  path="http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-updates-released-44&amp;arch=x86_64"/>
  </repository>

  <repository type="rpm-md" alias="rpmfusion-nonfree" sourcetype="mirrorlist">
    <source path="http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-44&amp;arch=x86_64"/>
  </repository>

  <repository type="rpm-md" alias="rpmfusion-nonfree-updates" sourcetype="mirrorlist">
    <source path="http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-updates-released-44&amp;arch=x86_64"/>
  </repository>

As far as I understand the following output, the repository issue then seems to be solved, however, it runs into an issue installing the specified packages:

/usr/lib/python3.14/site-packages/cerberus/__init__.py:13: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  from pkg_resources import get_distribution, DistributionNotFound
[ INFO    ]: 19:17:24 | Loading XML description: live-fedora//config.xml
[ INFO    ]: 19:17:24 | Support for XML markup available
[ INFO    ]: 19:17:24 | --> loaded live-fedora/config.xml
[ INFO    ]: 19:17:24 | --> Selected build type: iso
[ INFO    ]: 19:17:24 | Preparing new root system
[ INFO    ]: 19:17:24 | Setup root directory: /tmp/live-fedora/build/image-root
[ INFO    ]: 19:17:24 | Setting up repository https://mirrors.fedoraproject.org/metalink?repo=fedora-44&arch=x86_64
[ INFO    ]: 19:17:24 | --> Type: rpm-md
[ INFO    ]: 19:17:24 | --> SourceType: metalink
[ INFO    ]: 19:17:24 | --> Translated: https://mirrors.fedoraproject.org/metalink?repo=fedora-44&arch=x86_64
[ INFO    ]: 19:17:24 | --> Alias: fedora
[ INFO    ]: 19:17:24 | Setting up repository https://mirrors.fedoraproject.org/metalink?repo=updates-released-f44&arch=x86_64
[ INFO    ]: 19:17:24 | --> Type: rpm-md
[ INFO    ]: 19:17:24 | --> SourceType: metalink
[ INFO    ]: 19:17:24 | --> Translated: https://mirrors.fedoraproject.org/metalink?repo=updates-released-f44&arch=x86_64
[ INFO    ]: 19:17:24 | --> Alias: fedora-updates
[ INFO    ]: 19:17:24 | Setting up repository http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-44&arch=x86_64
[ INFO    ]: 19:17:24 | --> Type: rpm-md
[ INFO    ]: 19:17:24 | --> SourceType: mirrorlist
[ INFO    ]: 19:17:24 | --> Translated: http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-44&arch=x86_64
[ INFO    ]: 19:17:24 | --> Alias: rpmfusion-free
[ INFO    ]: 19:17:24 | Setting up repository http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-updates-released-44&arch=x86_64
[ INFO    ]: 19:17:24 | --> Type: rpm-md
[ INFO    ]: 19:17:24 | --> SourceType: mirrorlist
[ INFO    ]: 19:17:24 | --> Translated: http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-updates-released-44&arch=x86_64
[ INFO    ]: 19:17:24 | --> Alias: rpmfusion-free-updates
[ INFO    ]: 19:17:24 | Setting up repository http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-44&arch=x86_64
[ INFO    ]: 19:17:24 | --> Type: rpm-md
[ INFO    ]: 19:17:24 | --> SourceType: mirrorlist
[ INFO    ]: 19:17:24 | --> Translated: http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-44&arch=x86_64
[ INFO    ]: 19:17:24 | --> Alias: rpmfusion-nonfree
[ INFO    ]: 19:17:24 | Setting up repository http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-updates-released-44&arch=x86_64
[ INFO    ]: 19:17:24 | --> Type: rpm-md
[ INFO    ]: 19:17:24 | --> SourceType: mirrorlist
[ INFO    ]: 19:17:24 | --> Translated: http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-updates-released-44&arch=x86_64
[ INFO    ]: 19:17:24 | --> Alias: rpmfusion-nonfree-updates
[ INFO    ]: 19:17:24 | Using package manager backend: dnf5
[ INFO    ]: 19:17:24 | Installing bootstrap packages
[ INFO    ]: 19:17:24 | --> collection type: onlyRequired
[ INFO    ]: 19:17:24 | --> package: basesystem
[ INFO    ]: 19:17:24 | --> package: dnf5
[ INFO    ]: 19:17:24 | --> package: fedora-release
[ INFO    ]: 19:17:24 | --> package: filesystem
[ INFO    ]: 19:17:24 | --> package: grub2-efi-x64
[ INFO    ]: 19:17:24 | --> package: grub2-efi-x64-modules
[ INFO    ]: 19:17:24 | --> package: shadow
[ INFO    ]: 19:17:24 | --> package: shim
[ INFO    ]: Processing: [########################################] 100%
[ ERROR   ]: 19:17:36 | KiwiBootStrapPhaseFailed: Bootstrap package installation failed: No matches were found for the following plugin name patterns while disabling libdnf plugins: priorities, versionlock
Updating and loading repositories:
Repositories loaded.
Total size of inbound packages is 69 MiB. Need to download 0 B.
After this operation, 232 MiB extra will be used (install 232 MiB, remove 0 B).

Here it downloads the packages, which seems to work fine.

--------------------------------------------------------------------------------
[156/156] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
Running transaction
[  1/158] Verify package files          100% | 269.0   B/s | 156.0   B |  00m01s
>>> Running %pretrans scriptlet: filesystem-0:3.18-52.fc44.x86_64
>>> Finished %pretrans scriptlet: filesystem-0:3.18-52.fc44.x86_64
>>> [RPM] /tmp/live-fedora/build/image-root/var/cache/kiwi/dnf/cache/fedora-cff72538bc9825a4/packages/filesystem-3.18-52.fc44.x86_64.rpm: Header OpenPGP V4 RSA/SHA256 signature, key ID dbfcf71c6d9f90a6: NOKEY
[  2/158] Prepare transaction           100% |   1.1 KiB/s | 156.0   B |  00m00s
[  3/158] Installing libgcc-0:16.2.1-2. 100% |  66.5 MiB/s | 272.3 KiB |  00m00s
[  4/158] Installing libssh-config-0:0. 100% | 398.4 KiB/s | 816.0   B |  00m00s
[  5/158] Installing publicsuffix-list- 100% |  69.4 MiB/s |  71.1 KiB |  00m00s
[  6/158] Installing gnulib-l10n-0:2024 100% |  71.8 MiB/s | 661.9 KiB |  00m00s
[  7/158] Installing coreutils-common-0 100% | 164.4 MiB/s |  10.7 MiB |  00m00s
[  8/158] Installing kbd-misc-0:2.9.0-4 100% |  40.4 MiB/s |   2.5 MiB |  00m00s
[  9/158] Installing kbd-legacy-0:2.9.0 100% |  22.9 MiB/s | 610.1 KiB |  00m00s
[ 10/158] Installing pkgconf-m4-0:2.5.1 100% |  14.4 MiB/s |  14.7 KiB |  00m00s
[ 11/158] Installing fedora-release-ide 100% | 867.2 KiB/s | 888.0   B |  00m00s
[ 12/158] Installing fedora-gpg-keys-0: 100% |  11.2 MiB/s | 355.3 KiB |  00m00s
[ 13/158] Installing fedora-repos-0:44- 100% |   5.6 MiB/s |   5.7 KiB |  00m00s
[ 14/158] Installing fedora-release-com 100% |   6.1 MiB/s |  24.9 KiB |  00m00s
[ 15/158] Installing fedora-release-0:4 100% |   4.7 KiB/s | 124.0   B |  00m00s
>>> Running sysusers scriptlet: setup-0:2.15.0-28.fc44.noarch
>>> Error in sysusers scriptlet: setup-0:2.15.0-28.fc44.noarch
>>> [RPM] %sysusers(setup-2.15.0-28.fc44.noarch) scriptlet failed, exit status 127
[ 16/158] Installing filesystem-0:3.18- 100% |   1.1 MiB/s | 212.8 KiB |  00m00s
>>> [RPM] setup-2.15.0-28.fc44.noarch: install failed
>>> [RPM] failed to open /etc/group for id/name lookup: No such file or directory
>>> [RPM] group mail does not exist - using root
[ 17/158] Installing efi-filesystem-0:6 100% | 625.0 KiB/s | 640.0   B |  00m00s
[ 18/158] Installing pcre2-syntax-0:10. 100% |  69.4 MiB/s | 284.3 KiB |  00m00s
[ 19/158] Installing ncurses-base-0:6.6 100% |  21.7 MiB/s | 355.3 KiB |  00m00s
[ 20/158] Installing glibc-common-0:2.4 100% |  28.5 MiB/s |   1.0 MiB |  00m00s
[ 21/158] Installing glibc-minimal-lang 100% |  60.5 KiB/s | 124.0   B |  00m00s
[ 22/158] Installing glibc-0:2.43-9.fc4 100% |  95.1 MiB/s |   6.9 MiB |  00m00s
[ 23/158] Installing ncurses-libs-0:6.6 100% |  95.3 MiB/s | 975.4 KiB |  00m00s
[ 24/158] Installing bash-0:5.3.9-3.fc4 100% | 130.5 MiB/s |   8.5 MiB |  00m00s
[ 25/158] Installing zlib-ng-compat-0:2 100% |  81.3 MiB/s | 166.5 KiB |  00m00s
[ 26/158] Installing xz-libs-1:5.8.2-2. 100% | 106.8 MiB/s | 218.8 KiB |  00m00s
[ 27/158] Installing systemd-libs-0:259 100% | 188.5 MiB/s |   2.5 MiB |  00m00s
[ 28/158] Installing libstdc++-0:16.2.1 100% | 193.1 MiB/s |   3.1 MiB |  00m00s
[ 29/158] Installing libzstd-0:1.5.7-5. 100% | 187.0 MiB/s | 957.4 KiB |  00m00s
[ 30/158] Installing libacl-0:2.4.0-1.f 100% |  39.7 MiB/s |  40.7 KiB |  00m00s
[ 31/158] Installing libxml2-0:2.12.10- 100% |  84.3 MiB/s |   1.8 MiB |  00m00s
[ 32/158] Installing libxcrypt-0:4.5.2- 100% |  96.3 MiB/s | 295.9 KiB |  00m00s
[ 33/158] Installing libuuid-0:2.41.5-1 100% |  37.4 MiB/s |  38.3 KiB |  00m00s
[ 34/158] Installing libblkid-0:2.41.5- 100% | 134.4 MiB/s | 275.3 KiB |  00m00s
[ 35/158] Installing grub2-common-1:2.1 100% | 205.7 MiB/s |   6.2 MiB |  00m00s
[ 36/158] Installing bzip2-libs-0:1.0.8 100% |  79.7 MiB/s |  81.6 KiB |  00m00s
[ 37/158] Installing libunistring-0:1.1 100% | 192.7 MiB/s |   1.7 MiB |  00m00s
[ 38/158] Installing libidn2-0:2.3.8-3. 100% |  78.5 MiB/s | 562.6 KiB |  00m00s
[ 39/158] Installing libfdisk-0:2.41.5- 100% | 126.8 MiB/s | 389.4 KiB |  00m00s
[ 40/158] Installing fmt-0:11.2.0-4.fc4 100% |  22.5 MiB/s | 276.4 KiB |  00m00s
[ 41/158] Installing crypto-policies-0: 100% |   9.6 MiB/s | 157.7 KiB |  00m00s
[ 42/158] Installing libeconf-0:0.7.9-3 100% |  32.4 MiB/s |  66.4 KiB |  00m00s
[ 43/158] Installing json-c-0:0.18-8.fc 100% |  81.9 MiB/s |  83.9 KiB |  00m00s
[ 44/158] Installing pcre2-0:10.47-1.fc 100% | 140.6 MiB/s | 720.0 KiB |  00m00s
[ 45/158] Installing grep-0:3.12-3.fc44 100% |  38.6 MiB/s |   1.0 MiB |  00m00s
[ 46/158] Installing libsmartcols-0:2.4 100% |  92.5 MiB/s | 189.5 KiB |  00m00s
[ 47/158] Installing libffi-0:3.5.2-2.f 100% |  87.0 MiB/s |  89.1 KiB |  00m00s
[ 48/158] Installing popt-0:1.19-10.fc4 100% |  22.7 MiB/s | 139.3 KiB |  00m00s
[ 49/158] Installing sqlite-libs-0:3.51 100% | 176.7 MiB/s |   1.6 MiB |  00m00s
[ 50/158] Installing gmp-1:6.3.0-5.fc44 100% | 159.7 MiB/s | 817.5 KiB |  00m00s
[ 51/158] Installing libtasn1-0:4.21.0- 100% |  89.1 MiB/s | 182.4 KiB |  00m00s
[ 52/158] Installing p11-kit-0:0.26.5-1 100% |  79.7 MiB/s |   2.6 MiB |  00m00s
[ 53/158] Installing gdbm-libs-1:1.23-1 100% |  64.1 MiB/s | 131.3 KiB |  00m00s
[ 54/158] Installing readline-0:8.3-4.f 100% | 127.4 MiB/s | 521.6 KiB |  00m00s
[ 55/158] Installing keyutils-libs-0:1. 100% |  54.3 MiB/s |  55.6 KiB |  00m00s
[ 56/158] Installing libsepol-0:3.11-1. 100% | 168.6 MiB/s | 863.0 KiB |  00m00s
[ 57/158] Installing libselinux-0:3.11- 100% | 100.8 MiB/s | 206.5 KiB |  00m00s
[ 58/158] Installing sed-0:4.9-7.fc44.x 100% |  38.4 MiB/s | 865.4 KiB |  00m00s
[ 59/158] Installing libmount-0:2.41.5- 100% | 128.2 MiB/s | 393.7 KiB |  00m00s
[ 60/158] Installing util-linux-core-0: 100% |  44.8 MiB/s |   1.5 MiB |  00m00s
[ 61/158] Installing findutils-1:4.10.0 100% |  51.9 MiB/s |   1.9 MiB |  00m00s
[ 62/158] Installing libattr-0:2.6.0-1. 100% |  24.7 MiB/s |  25.2 KiB |  00m00s
[ 63/158] Installing libcap-ng-0:0.9.6- 100% |  34.5 MiB/s |  70.6 KiB |  00m00s
[ 64/158] Installing audit-libs-0:4.2.1 100% | 128.0 MiB/s | 393.1 KiB |  00m00s
[ 65/158] Installing pam-libs-0:1.7.2-2 100% |  64.8 MiB/s | 132.7 KiB |  00m00s
[ 66/158] Installing libcap-0:2.78-1.fc 100% |  13.3 MiB/s | 217.2 KiB |  00m00s
[ 67/158] Installing libcom_err-0:1.47. 100% |  62.6 MiB/s |  64.1 KiB |  00m00s
[ 68/158] Installing ngtcp2-0:1.22.1-1. 100% | 110.6 MiB/s | 339.8 KiB |  00m00s
[ 69/158] Installing liblastlog2-0:2.41 100% |   4.3 MiB/s |  43.7 KiB |  00m00s
[ 70/158] Installing kbd-0:2.9.0-4.fc44 100% |  42.0 MiB/s |   1.5 MiB |  00m00s
[ 71/158] Installing libsemanage-0:3.11 100% |  77.7 MiB/s | 318.2 KiB |  00m00s
[ 72/158] Installing gdbm-1:1.23-11.fc4 100% |  25.2 MiB/s | 464.7 KiB |  00m00s
[ 73/158] Installing cyrus-sasl-lib-0:2 100% |  82.5 MiB/s |   2.3 MiB |  00m00s
[ 74/158] Installing nettle-0:3.10.1-3. 100% | 129.8 MiB/s | 797.4 KiB |  00m00s
[ 75/158] Installing xz-1:5.8.2-2.fc44. 100% |  50.7 MiB/s |   1.4 MiB |  00m00s
[ 76/158] Installing libpsl-0:0.21.5-7. 100% |  75.6 MiB/s |  77.4 KiB |  00m00s
[ 77/158] Installing libtextstyle-0:0.2 100% | 186.9 MiB/s | 382.8 KiB |  00m00s
[ 78/158] Installing gettext-libs-0:0.2 100% | 214.9 MiB/s |   2.4 MiB |  00m00s
[ 79/158] Installing zstd-0:1.5.7-5.fc4 100% |  30.9 MiB/s | 506.0 KiB |  00m00s
[ 80/158] Installing sdbus-cpp-0:2.2.1- 100% | 120.0 MiB/s | 368.7 KiB |  00m00s
[ 81/158] Installing procps-ng-0:4.0.6- 100% |  47.9 MiB/s |   1.1 MiB |  00m00s
[ 82/158] Installing file-libs-0:5.46-1 100% | 289.4 MiB/s |  11.9 MiB |  00m00s
[ 83/158] Installing file-0:5.46-10.fc4 100% |   6.6 MiB/s | 101.6 KiB |  00m00s
[ 84/158] Installing efivar-libs-0:39-1 100% | 129.9 MiB/s | 399.1 KiB |  00m00s
[ 85/158] Installing libyaml-0:0.2.5-18 100% |  68.3 MiB/s | 139.9 KiB |  00m00s
[ 86/158] Installing lua-libs-0:5.4.8-5 100% | 138.3 MiB/s | 283.2 KiB |  00m00s
[ 87/158] Installing fuse3-libs-0:3.18. 100% | 146.0 MiB/s | 298.9 KiB |  00m00s
[ 88/158] Installing gettext-envsubst-0 100% |   6.2 MiB/s |  88.9 KiB |  00m00s
[ 89/158] Installing gettext-runtime-0: 100% |  33.2 MiB/s | 748.8 KiB |  00m00s
[ 90/158] Installing cpio-0:2.15-9.fc44 100% |  52.5 MiB/s |   1.1 MiB |  00m00s
[ 91/158] Installing libpkgconf-0:2.5.1 100% |  89.1 MiB/s |  91.3 KiB |  00m00s
[ 92/158] Installing pkgconf-0:2.5.1-1. 100% |   6.6 MiB/s |  95.2 KiB |  00m00s
[ 93/158] Installing pkgconf-pkg-config 100% | 147.8 KiB/s |   1.8 KiB |  00m00s
[ 94/158] Installing libseccomp-0:2.6.1 100% | 109.4 MiB/s | 224.0 KiB |  00m00s
[ 95/158] Installing lz4-libs-0:1.10.0- 100% |  77.3 MiB/s | 158.4 KiB |  00m00s
[ 96/158] Installing libverto-0:0.3.2-1 100% |  26.4 MiB/s |  27.1 KiB |  00m00s
[ 97/158] Installing alternatives-0:1.3 100% |   4.8 MiB/s |  63.6 KiB |  00m00s
[ 98/158] Installing p11-kit-trust-0:0. 100% |  18.0 MiB/s | 480.1 KiB |  00m00s
[ 99/158] Installing gnutls-0:3.8.13-1. 100% | 160.4 MiB/s |   3.8 MiB |  00m00s
[100/158] Installing glib2-0:2.88.3-1.f 100% | 162.6 MiB/s |  15.3 MiB |  00m00s
[101/158] Installing openssl-libs-1:3.5 100% | 219.4 MiB/s |   9.2 MiB |  00m00s
[102/158] Installing coreutils-0:9.10-5 100% |  95.0 MiB/s |   5.7 MiB |  00m00s
[103/158] Installing ca-certificates-0: 100% |   1.4 MiB/s |   2.5 MiB |  00m02s
[104/158] Installing krb5-libs-0:1.22.2 100% | 119.7 MiB/s |   2.4 MiB |  00m00s
[105/158] Installing kmod-0:34.2-4.fc44 100% |  13.2 MiB/s | 256.9 KiB |  00m00s
[106/158] Installing systemd-shared-0:2 100% | 201.9 MiB/s |   5.5 MiB |  00m00s
[107/158] Installing systemd-sysusers-0 100% |   5.6 MiB/s |  80.8 KiB |  00m00s
[108/158] Installing libtirpc-0:1.3.8-0 100% |  68.5 MiB/s | 210.3 KiB |  00m00s
[109/158] Installing authselect-libs-0: 100% |  36.9 MiB/s | 906.2 KiB |  00m00s
[110/158] Installing kmod-libs-0:34.2-4 100% |  45.6 MiB/s | 140.1 KiB |  00m00s
[111/158] Installing zchunk-libs-0:1.5. 100% |  52.0 MiB/s | 106.4 KiB |  00m00s
[112/158] Installing libnsl2-0:2.0.1-5. 100% |  57.5 MiB/s |  58.8 KiB |  00m00s
[113/158] Installing gzip-0:1.14-2.fc44 100% |  18.9 MiB/s | 407.1 KiB |  00m00s
[114/158] Installing cracklib-0:2.10.3- 100% |  10.5 MiB/s | 246.7 KiB |  00m00s
[115/158] Installing libpwquality-0:1.4 100% |  17.1 MiB/s | 421.0 KiB |  00m00s
[116/158] Installing pam-0:1.7.2-2.fc44 100% |  34.4 MiB/s |   1.7 MiB |  00m00s
[117/158] Installing util-linux-0:2.41. 100% |  42.7 MiB/s |   3.6 MiB |  00m00s
>>> Running sysusers scriptlet: systemd-0:259.9-1.fc44.x86_64
>>> Error in sysusers scriptlet: systemd-0:259.9-1.fc44.x86_64
>>> [RPM] %sysusers(systemd-259.9-1.fc44.x86_64) scriptlet failed, exit status 127
[118/158] Installing device-mapper-0:1. 100% |  16.3 MiB/s | 350.3 KiB |  00m00s
>>> [RPM] systemd-259.9-1.fc44.x86_64: install failed
[119/158] Installing device-mapper-libs 100% | 105.3 MiB/s | 431.3 KiB |  00m00s
[120/158] Installing cryptsetup-libs-0: 100% |  85.2 MiB/s |   3.0 MiB |  00m00s
>>> Running sysusers scriptlet: systemd-udev-0:259.9-1.fc44.x86_64
>>> Error in sysusers scriptlet: systemd-udev-0:259.9-1.fc44.x86_64
>>> [RPM] %sysusers(systemd-udev-259.9-1.fc44.x86_64) scriptlet failed, exit status 127
[121/158] Installing grub2-tools-minima 100% | 113.4 MiB/s |   4.1 MiB |  00m00s
>>> [RPM] systemd-udev-259.9-1.fc44.x86_64: install failed
[122/158] Installing os-prober-0:1.81-1 100% |   6.7 MiB/s | 117.3 KiB |  00m00s
[123/158] Installing libkcapi-0:1.5.0-7 100% |  49.3 MiB/s | 101.0 KiB |  00m00s
[124/158] Installing libkcapi-hasher-0: 100% |   3.1 MiB/s |  40.6 KiB |  00m00s
[125/158] Installing libkcapi-hmaccalc- 100% |  82.3 KiB/s |   1.1 KiB |  00m00s
[126/158] Installing dracut-0:108-8.fc4 100% |  25.5 MiB/s |   1.6 MiB |  00m00s
[127/158] Installing grub2-tools-1:2.12 100% |  98.6 MiB/s |   7.8 MiB |  00m00s
[128/158] Installing grub2-efi-x64-1:2. 100% |  97.6 MiB/s |   6.2 MiB |  00m00s
[129/158] Installing mokutil-2:0.7.2-3. 100% |   3.8 MiB/s | 100.1 KiB |  00m00s
[130/158] Installing rpm-sequoia-0:1.10 100% | 163.4 MiB/s |   2.5 MiB |  00m00s
[131/158] Installing rpm-libs-0:6.0.2-1 100% | 134.3 MiB/s | 962.8 KiB |  00m00s
[132/158] Installing libmodulemd-0:2.15 100% |  16.9 MiB/s | 692.8 KiB |  00m00s
[133/158] Installing libsolv-0:0.7.40-1 100% |  95.6 MiB/s | 979.1 KiB |  00m00s
[134/158] Installing libarchive-0:3.8.7 100% | 139.7 MiB/s |   1.0 MiB |  00m00s
[135/158] Installing ngtcp2-crypto-ossl 100% |  51.2 MiB/s |  52.5 KiB |  00m00s
[136/158] Installing libevent-0:2.1.13- 100% |  87.4 MiB/s | 984.4 KiB |  00m00s
[137/158] Installing libbrotli-0:1.2.0- 100% |  77.0 MiB/s | 867.3 KiB |  00m00s
[138/158] Installing libnghttp3-0:1.18. 100% |  53.7 MiB/s | 164.8 KiB |  00m00s
[139/158] Installing libcbor-0:0.13.0-2 100% |  39.5 MiB/s |  80.9 KiB |  00m00s
[140/158] Installing libfido2-0:1.16.0- 100% |  80.7 MiB/s | 247.9 KiB |  00m00s
[141/158] Installing libssh-0:0.12.2-1. 100% | 118.4 MiB/s | 727.6 KiB |  00m00s
[142/158] Installing libnghttp2-0:1.68. 100% |  81.7 MiB/s | 167.3 KiB |  00m00s
[143/158] Installing libtool-ltdl-0:2.5 100% |  34.7 MiB/s |  71.1 KiB |  00m00s
[144/158] Installing openldap-0:2.6.14- 100% |  82.4 MiB/s | 674.7 KiB |  00m00s
[145/158] Installing libcurl-0:8.18.0-1 100% | 142.6 MiB/s |   1.0 MiB |  00m00s
[146/158] Installing librepo-0:1.21.2-1 100% |  62.1 MiB/s | 254.4 KiB |  00m00s
[147/158] Installing libdnf5-0:5.4.6.0- 100% | 159.3 MiB/s |   4.8 MiB |  00m00s
[148/158] Installing libdnf5-cli-0:5.4. 100% | 108.1 MiB/s |   1.1 MiB |  00m00s
[149/158] Installing curl-0:8.18.0-12.f 100% |  16.8 MiB/s | 482.7 KiB |  00m00s
[150/158] Installing rpm-0:6.0.2-1.fc44 100% |  29.7 MiB/s |   2.6 MiB |  00m00s
[151/158] Installing dnf5-0:5.4.6.0-1.f 100% |  57.6 MiB/s |   3.5 MiB |  00m00s
[152/158] Installing shim-x64-0:16.1-7. 100% | 176.1 MiB/s |   1.9 MiB |  00m00s
[153/158] Installing authselect-0:1.7.1 100% |  10.2 MiB/s | 207.9 KiB |  00m00s
[154/158] Installing shadow-utils-2:4.1 100% |  68.3 MiB/s |   4.0 MiB |  00m00s
[155/158] Installing grub2-efi-x64-modu 100% |   2.6 MiB/s |   5.8 MiB |  00m02s
>>> Running %posttrans scriptlet: grub2-common-1:2.12-66.fc44.noarch
>>> Finished %posttrans scriptlet: grub2-common-1:2.12-66.fc44.noarch
>>> Scriptlet output:
>>> /usr/bin/grub2-probe: error: failed to get canonical path of `tmpfs'.
>>> 
>>> Running %posttrans scriptlet: grub2-efi-x64-1:2.12-66.fc44.x86_64
>>> Finished %posttrans scriptlet: grub2-efi-x64-1:2.12-66.fc44.x86_64
>>> Scriptlet output:
>>> grub2-probe: error: failed to get canonical path of `tmpfs'.
>>> 
Transaction failed: Rpm transaction failed.
Warning: skipped OpenPGP checks for 156 packages from repositories: fedora, fedora-updates
: 

Also, here’s the command I use to start the build process:

sudo kiwi-ng system build \
  --description live-fedora \
  --target-dir /tmp/live-fedora

Is there anything wrong with what I’m doing? Did I miss anything? Is kiwi-ng even the right tool here?

I’d be happy for any help.