mkosi icon indicating copy to clipboard operation
mkosi copied to clipboard

Kernel not found for Arch Linux ARM

Open MoltenArmor opened this issue 1 month ago β€’ 1 comments

mkosi commit the issue has been seen with

main

Used host distribution

Debian testing

Used target distribution

Arch Linux ARM

Linux kernel version used

6.17.7-2-aarch64-ARCH

CPU architectures issue was seen on

aarch64

Unexpected behaviour you saw

mkosi fails to build the image, log showing A bootable image was requested but no kernel was found.

Used mkosi config

[Distribution]
Distribution=arch
RepositoryKeyCheck=no

[Output]
Format=disk

[Content]
Bootable=yes
Packages=systemd
    bash
    coreutils
    util-linux
    linux

mkosi output

β€£ Loading configuration file /home/kwok/test-arch/mkosi.conf
β€£ Loading configuration file /tmp/tmpd5evx_2i/resources/mkosi-initrd/mkosi.conf
β€£ Loading configuration file /tmp/tmpd5evx_2i/resources/mkosi-initrd/mkosi.conf.d/arch.conf
β€£ Validating certificates and keys
β€£ Populating pacman keyring
β€£ + pacman-key --init
......
:: Running post-transaction hooks...
( 1/11) Creating system user accounts...
Creating group 'tss' with GID 972.
Creating user 'tss' (tss user for tpm2) with UID 972 and GID 972.
( 2/11) Updating journal message catalog...
( 3/11) Reloading system manager configuration...
  Skipped: Running in chroot.
( 4/11) Reloading user manager configuration...
  Skipped: Running in chroot.
( 5/11) Updating udev hardware database...
( 6/11) Applying kernel sysctl settings...
  Skipped: Running in chroot.
( 7/11) Creating temporary files...
Setting access ACL "u::rwx,g::r-x,g:wheel:r-x,g:adm:r-x,m::r-x,o::r-x" on /var/log/journal failed: Invalid argument
Setting default ACL "u::rwx,g::rwx,g:tss:rwx,m::rwx,o::r-x" on /var/lib/tpm2-tss/system/keystore failed: Invalid argument
Setting default ACL "u::rwx,g::rwx,g:tss:rwx,m::rwx,o::r-x" on /run/tpm2-tss/eventlog failed: Invalid argument
error: command failed to execute correctly
( 8/11) Reloading device manager configuration...
  Skipped: Running in chroot.
( 9/11) Arming ConditionNeedsUpdate...
(10/11) Rebuilding certificate stores...
(11/11) Reloading system bus configuration...
  Skipped: Running in chroot.
β€£  Copying in extra file trees…
β€£ + cp --version
β€£ + cp --recursive --no-dereference --preserve=mode,links --reflink=auto --copy-contents /work/tmp/tmpd5evx_2i/resources/mkosi-initrd/mkosi.extra /work/home/kwok/.cache/mkosi/mkosi-workspace-_q6pevms/root --keep-directory-symlink --no-target-directory
β€£  Generating system users
β€£ + systemd-sysusers --root=/buildroot
β€£  Generating volatile files
β€£ + systemd-tmpfiles --root=/buildroot --boot --create --remove --exclude-prefix=/tmp --exclude-prefix=/var/tmp --exclude-prefix=/run --exclude-prefix=/proc --exclude-prefix=/sys --exclude-prefix=/dev --exclude-prefix=/var
fchownat() of /buildroot/usr/bin/groupmems failed: Invalid argument
β€£  Applying presets…
β€£ + systemctl --root=/buildroot preset-all
Removed '/buildroot/etc/systemd/system/getty.target.wants/[email protected]'.
Removed '/buildroot/etc/systemd/system/sockets.target.wants/systemd-userdbd.socket'.
Removed '/buildroot/etc/systemd/system/multi-user.target.wants/remote-fs.target'.
Created symlink '/buildroot/etc/systemd/system/factory-reset.target.wants/systemd-tpm2-clear.service' β†’ '/usr/lib/systemd/system/systemd-tpm2-clear.service'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-network-generator.service' β†’ '/usr/lib/systemd/system/systemd-network-generator.service'.
Created symlink '/buildroot/etc/systemd/system/dbus-org.freedesktop.network1.service' β†’ '/usr/lib/systemd/system/systemd-networkd.service'.
Created symlink '/buildroot/etc/systemd/system/multi-user.target.wants/systemd-networkd.service' β†’ '/usr/lib/systemd/system/systemd-networkd.service'.
Created symlink '/buildroot/etc/systemd/system/sockets.target.wants/systemd-networkd.socket' β†’ '/usr/lib/systemd/system/systemd-networkd.socket'.
Created symlink '/buildroot/etc/systemd/system/sockets.target.wants/systemd-networkd-varlink.socket' β†’ '/usr/lib/systemd/system/systemd-networkd-varlink.socket'.
Created symlink '/buildroot/etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service' β†’ '/usr/lib/systemd/system/systemd-networkd-wait-online.service'.
Created symlink '/buildroot/etc/systemd/system/ctrl-alt-del.target' β†’ '/usr/lib/systemd/system/reboot.target'.
Created symlink '/buildroot/etc/systemd/system/dbus-org.freedesktop.resolve1.service' β†’ '/usr/lib/systemd/system/systemd-resolved.service'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-resolved.service' β†’ '/usr/lib/systemd/system/systemd-resolved.service'.
Created symlink '/buildroot/etc/systemd/system/sockets.target.wants/systemd-resolved-varlink.socket' β†’ '/usr/lib/systemd/system/systemd-resolved-varlink.socket'.
Created symlink '/buildroot/etc/systemd/system/sockets.target.wants/systemd-resolved-monitor.socket' β†’ '/usr/lib/systemd/system/systemd-resolved-monitor.socket'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-pstore.service' β†’ '/usr/lib/systemd/system/systemd-pstore.service'.
Created symlink '/buildroot/etc/systemd/system/sockets.target.wants/systemd-journald-audit.socket' β†’ '/usr/lib/systemd/system/systemd-journald-audit.socket'.
Created symlink '/buildroot/etc/systemd/system/systemd-journald.service.wants/systemd-journald-audit.socket' β†’ '/usr/lib/systemd/system/systemd-journald-audit.socket'.
β€£ + systemctl --root=/buildroot --global preset-all
Created symlink '/buildroot/etc/systemd/user/default.target.wants/machines.target' β†’ '/usr/lib/systemd/user/machines.target'.
Created symlink '/buildroot/etc/systemd/user/default.target.wants/p11-kit-server.service' β†’ '/usr/lib/systemd/user/p11-kit-server.service'.
Created symlink '/buildroot/etc/systemd/user/dbus.service' β†’ '/usr/lib/systemd/user/dbus-broker.service'.
Created symlink '/buildroot/etc/systemd/user/timers.target.wants/systemd-tmpfiles-clean.timer' β†’ '/usr/lib/systemd/user/systemd-tmpfiles-clean.timer'.
Created symlink '/buildroot/etc/systemd/user/basic.target.wants/systemd-tmpfiles-setup.service' β†’ '/usr/lib/systemd/user/systemd-tmpfiles-setup.service'.
β€£  Applying first boot settings
β€£ + systemd-firstboot --root=/buildroot --force --locale C.UTF-8
/buildroot: /etc/locale.conf written.
β€£  Generating hardware database
β€£ + systemd-hwdb --root=/buildroot --usr --strict update
β€£ + rm -rf -- /work/home/kwok/.cache/mkosi/mkosi-workspace-_q6pevms/root/var/lib/pacman
β€£  Removing files…
β€£ + rm -rf -- ...
β€£  Creating cpio archive /home/kwok/.cache/mkosi/mkosi-workspace-_q6pevms/staging/initrd.cpio…
β€£ + cpio --create --reproducible --renumber-inodes --null --format=newc --quiet --directory /work/home/kwok/.cache/mkosi/mkosi-workspace-_q6pevms/root --owner=0:0
β€£  Compressing /home/kwok/.cache/mkosi/mkosi-workspace-_q6pevms/staging/initrd.cpio with zstd
β€£ + zstd -q -3 -T0 --stdout -
β€£ + rm -rf -- /work/home/kwok/test-arch/initrd /work/home/kwok/test-arch/initrd.cpio.zst
β€£  /home/kwok/test-arch/initrd.cpio.zst size is 76.3M, consumes 76.3M.
β€£ + rm -rf -- /work/home/kwok/.cache/mkosi/mkosi-workspace-_q6pevms /work/home/kwok/.cache/mkosi/mkosi-workspace-_q6pevms/root
β€£ + /usr/bin/systemd-repart --version
β€£ Version reported by /usr/bin/systemd-repart is 258-1
β€£ Building main image
β€£  Installing Arch Linux
β€£ + pacman --root=/buildroot --logfile=/dev/null --dbpath=/var/lib/pacman --cachedir=/var/cache/pacman/mkosi --cachedir=/var/cache/pacman/pkg --hookdir=/buildroot/etc/pacman.d/hooks --arch aarch64 --color auto --noconfirm --sync --needed --assume-installed initramfs filesystem
resolving dependencies...
looking for conflicting packages...

Packages (2) iana-etc-20250612-1  filesystem-2025.10.12-1

Total Installed Size:  4.02 MiB

:: Proceed with installation? [Y/n]
(2/2) checking keys in keyring                                                                [######################################################] 100%
(2/2) checking package integrity                                                              [######################################################] 100%
(2/2) loading package files                                                                   [######################################################] 100%
(2/2) checking for file conflicts                                                             [######################################################] 100%
:: Processing package changes...
(1/2) installing iana-etc                                                                     [######################################################] 100%
(2/2) installing filesystem                                                                   [######################################################] 100%
β€£ + pacman --root=/buildroot --logfile=/dev/null --dbpath=/var/lib/pacman --cachedir=/var/cache/pacman/mkosi --cachedir=/var/cache/pacman/pkg --hookdir=/buildroot/etc/pacman.d/hooks --arch aarch64 --color auto --noconfirm --sync --needed --assume-installed initramfs bash coreutils linux systemd util-linux
:: There are 9 providers available for linux:
:: Repository core
   1) linux-aarch64  2) linux-aarch64-rc  3) linux-espressobin  4) linux-gru  5) linux-oak  6) linux-odroid-c2  7) linux-odroid-n2  8) linux-rpi
   9) linux-rpi-16k

Enter a number (default=1):
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: systemd-libs will be installed before its libcap dependency

Packages (88) acl-2.3.2-1  attr-2.5.2-1  audit-4.1.2-1  binutils-2.44-1  brotli-1.1.0-3  bzip2-1.0.8-6  ca-certificates-20240618-1
              ca-certificates-mozilla-3.117-1  ca-certificates-utils-20240618-1  cryptsetup-2.8.1-1  curl-8.16.0-1  dbus-1.16.2-1  dbus-broker-37-2
              dbus-broker-units-37-2  dbus-units-37-2  device-mapper-2.03.36-1  diffutils-3.12-2  e2fsprogs-1.47.3-1  expat-2.7.3-1  file-5.46-5
              findutils-4.10.0-3  gawk-5.3.2-1  gcc-libs-14.2.1+r753+g1cd744a6828f-1  gdbm-1.26-1  glibc-2.41+r6+gcf88351b685d-1  gmp-6.3.0-2  grep-3.12-2
              gzip-1.14-2  hwdata-0.400-1  icu-76.1-1  jansson-2.14.1-1  json-c-0.18-2  kbd-2.9.0-1  keyutils-1.6.3-3  kmod-34.2-1  krb5-1.21.3-2
              libarchive-3.8.2-1  libcap-2.77-1  libcap-ng-0.8.5-3  libelf-0.194-1  libevent-2.1.12-4  libffi-3.5.2-1  libgcrypt-1.11.2-1
              libgpg-error-1.56-1  libidn2-2.3.7-1  libldap-2.6.10-2  libnghttp2-1.68.0-1  libnghttp3-1.12.0-1  libnsl-2.0.1-1  libp11-kit-0.25.10-2
              libpsl-0.21.5-2  libsasl-2.1.28-5  libseccomp-2.5.6-1  libssh2-1.11.1-1  libtasn1-4.20.0-1  libtirpc-1.3.7-1  libunistring-1.3-1
              libverto-0.3.2-5  libxcrypt-4.4.38-1  libxml2-2.15.1-1  linux-api-headers-6.16-2  lmdb-0.9.33-1  lz4-1:1.10.0-2  mkinitcpio-39.2-5
              mkinitcpio-busybox-1.36.1-1  mpfr-4.2.2-1  ncurses-6.5-4  openssl-3.6.0-1  p11-kit-0.25.10-2  pam-1.7.1-1  pambase-20250719-1  pcre2-10.47-1
              popt-1.19-2  readline-8.3.001-1  sed-4.9-3  shadow-4.18.0-1  sqlite-3.50.4-2  systemd-libs-258.1-1  tzdata-2025b-1  util-linux-libs-2.41.2-1
              xz-5.8.1-1  zlib-1:1.3.1-2  zstd-1.5.7-2  bash-5.3.3-2  coreutils-9.8-2  linux-aarch64-6.17.7-2  systemd-258.1-1  util-linux-2.41.2-1

Total Installed Size:  900.78 MiB

:: Proceed with installation? [Y/n]
(88/88) checking keys in keyring                                                              [######################################################] 100%
(88/88) checking package integrity                                                            [######################################################] 100%
(88/88) loading package files                                                                 [######################################################] 100%
(88/88) checking for file conflicts                                                           [######################################################] 100%
:: Processing package changes...
( 1/88) installing linux-api-headers                                                          [######################################################] 100%
( 2/88) installing tzdata                                                                     [######################################################] 100%
Optional dependencies for tzdata
    bash: for tzselect [pending]
    glibc: for zdump, zic [pending]
( 3/88) installing glibc                                                                      [######################################################] 100%
Optional dependencies for glibc
    gd: for memusagestat
    perl: for mtrace
( 4/88) installing gcc-libs                                                                   [######################################################] 100%
( 5/88) installing ncurses                                                                    [######################################################] 100%
Optional dependencies for ncurses
    bash: for ncursesw6-config [pending]
( 6/88) installing readline                                                                   [######################################################] 100%
( 7/88) installing bash                                                                       [######################################################] 100%
Optional dependencies for bash
    bash-completion: for tab completion
( 8/88) installing acl                                                                        [######################################################] 100%
( 9/88) installing attr                                                                       [######################################################] 100%
(10/88) installing gmp                                                                        [######################################################] 100%
(11/88) installing zlib                                                                       [######################################################] 100%
(12/88) installing sqlite                                                                     [######################################################] 100%
(13/88) installing util-linux-libs                                                            [######################################################] 100%
Optional dependencies for util-linux-libs
    python: python bindings to libmount
(14/88) installing e2fsprogs                                                                  [######################################################] 100%
Optional dependencies for e2fsprogs
    lvm2: for e2scrub
    util-linux: for e2scrub [pending]
    smtp-forwarder: for e2scrub_fail script
(15/88) installing keyutils                                                                   [######################################################] 100%
(16/88) installing gdbm                                                                       [######################################################] 100%
(17/88) installing openssl                                                                    [######################################################] 100%
Optional dependencies for openssl
    ca-certificates [pending]
    perl
(18/88) installing libsasl                                                                    [######################################################] 100%
(19/88) installing libldap                                                                    [######################################################] 100%
(20/88) installing libevent                                                                   [######################################################] 100%
Optional dependencies for libevent
    python: event_rpcgen.py
(21/88) installing libverto                                                                   [######################################################] 100%
(22/88) installing lmdb                                                                       [######################################################] 100%
(23/88) installing krb5                                                                       [######################################################] 100%
(24/88) installing libcap-ng                                                                  [######################################################] 100%
(25/88) installing audit                                                                      [######################################################] 100%
Optional dependencies for audit
    audispd-plugins: for audit event dispatcher plugins
    audispd-plugins-zos: for z/OS audit event dispatcher plugin
(26/88) installing libxcrypt                                                                  [######################################################] 100%
(27/88) installing libtirpc                                                                   [######################################################] 100%
(28/88) installing libnsl                                                                     [######################################################] 100%
(29/88) installing pambase                                                                    [######################################################] 100%
(30/88) installing libgpg-error                                                               [######################################################] 100%
(31/88) installing libgcrypt                                                                  [######################################################] 100%
(32/88) installing lz4                                                                        [######################################################] 100%
(33/88) installing xz                                                                         [######################################################] 100%
(34/88) installing zstd                                                                       [######################################################] 100%
(35/88) installing systemd-libs                                                               [######################################################] 100%
(36/88) installing pam                                                                        [######################################################] 100%
(37/88) installing libcap                                                                     [######################################################] 100%
(38/88) installing coreutils                                                                  [######################################################] 100%
(39/88) installing kmod                                                                       [######################################################] 100%
(40/88) installing mpfr                                                                       [######################################################] 100%
(41/88) installing gawk                                                                       [######################################################] 100%
(42/88) installing mkinitcpio-busybox                                                         [######################################################] 100%
(43/88) installing bzip2                                                                      [######################################################] 100%
(44/88) installing libseccomp                                                                 [######################################################] 100%
(45/88) installing file                                                                       [######################################################] 100%
(46/88) installing shadow                                                                     [######################################################] 100%
(47/88) installing util-linux                                                                 [######################################################] 100%
Optional dependencies for util-linux
    words: default dictionary for look
(48/88) installing icu                                                                        [######################################################] 100%
(49/88) installing libxml2                                                                    [######################################################] 100%
Optional dependencies for libxml2
    python: Python bindings
(50/88) installing libarchive                                                                 [######################################################] 100%
(51/88) installing jansson                                                                    [######################################################] 100%
(52/88) installing findutils                                                                  [######################################################] 100%
(53/88) installing libtasn1                                                                   [######################################################] 100%
(54/88) installing libffi                                                                     [######################################################] 100%
(55/88) installing libp11-kit                                                                 [######################################################] 100%
(56/88) installing p11-kit                                                                    [######################################################] 100%
(57/88) installing ca-certificates-utils                                                      [######################################################] 100%
(58/88) installing ca-certificates-mozilla                                                    [######################################################] 100%
(59/88) installing ca-certificates                                                            [######################################################] 100%
(60/88) installing brotli                                                                     [######################################################] 100%
(61/88) installing libunistring                                                               [######################################################] 100%
(62/88) installing libidn2                                                                    [######################################################] 100%
(63/88) installing libnghttp2                                                                 [######################################################] 100%
(64/88) installing libnghttp3                                                                 [######################################################] 100%
(65/88) installing libpsl                                                                     [######################################################] 100%
(66/88) installing libssh2                                                                    [######################################################] 100%
(67/88) installing curl                                                                       [######################################################] 100%
(68/88) installing json-c                                                                     [######################################################] 100%
(69/88) installing libelf                                                                     [######################################################] 100%
(70/88) installing binutils                                                                   [######################################################] 100%
Optional dependencies for binutils
    debuginfod: for debuginfod server/client functionality
(71/88) installing diffutils                                                                  [######################################################] 100%
(72/88) installing pcre2                                                                      [######################################################] 100%
Optional dependencies for pcre2
    sh: for pcre2-config [installed]
(73/88) installing grep                                                                       [######################################################] 100%
(74/88) installing sed                                                                        [######################################################] 100%
(75/88) installing gzip                                                                       [######################################################] 100%
Optional dependencies for gzip
    less: zless support
    util-linux: zmore support [installed]
    diffutils: zdiff/zcmp support [installed]
(76/88) installing device-mapper                                                              [######################################################] 100%
(77/88) installing popt                                                                       [######################################################] 100%
(78/88) installing cryptsetup                                                                 [######################################################] 100%
(79/88) installing expat                                                                      [######################################################] 100%
(80/88) installing dbus                                                                       [######################################################] 100%
(81/88) installing dbus-broker                                                                [######################################################] 100%
(82/88) installing dbus-broker-units                                                          [######################################################] 100%
(83/88) installing dbus-units                                                                 [######################################################] 100%
(84/88) installing kbd                                                                        [######################################################] 100%
(85/88) installing hwdata                                                                     [######################################################] 100%
(86/88) installing systemd                                                                    [######################################################] 100%
Creating group 'sys' with GID 3.
Creating group 'mem' with GID 8.
Creating group 'ftp' with GID 11.
Creating group 'mail' with GID 12.
Creating group 'log' with GID 19.
Creating group 'smmsp' with GID 25.
Creating group 'proc' with GID 26.
Creating group 'games' with GID 50.
Creating group 'lock' with GID 54.
Creating group 'network' with GID 90.
Creating group 'floppy' with GID 94.
Creating group 'scanner' with GID 96.
Creating group 'power' with GID 98.
Creating group 'nobody' with GID 65534.
Creating group 'adm' with GID 999.
Creating group 'wheel' with GID 998.
Creating group 'utmp' with GID 997.
Creating group 'audio' with GID 996.
Creating group 'clock' with GID 995.
Creating group 'disk' with GID 994.
Creating group 'input' with GID 993.
Creating group 'kmem' with GID 992.
Creating group 'kvm' with GID 991.
Creating group 'lp' with GID 990.
Creating group 'optical' with GID 989.
Creating group 'render' with GID 988.
Creating group 'sgx' with GID 987.
Creating group 'storage' with GID 986.
Creating group 'tty' with GID 5.
Creating group 'uucp' with GID 985.
Creating group 'video' with GID 984.
Creating group 'users' with GID 983.
Creating group 'groups' with GID 982.
Creating group 'systemd-journal' with GID 981.
Creating group 'rfkill' with GID 980.
Creating group 'bin' with GID 1.
Creating user 'bin' (n/a) with UID 1 and GID 1.
Creating group 'daemon' with GID 2.
Creating user 'daemon' (n/a) with UID 2 and GID 2.
Creating user 'mail' (n/a) with UID 8 and GID 12.
Creating user 'ftp' (n/a) with UID 14 and GID 11.
Creating group 'http' with GID 33.
Creating user 'http' (n/a) with UID 33 and GID 33.
Creating user 'nobody' (Kernel Overflow User) with UID 65534 and GID 65534.
Creating group 'dbus' with GID 81.
Creating user 'dbus' (System Message Bus) with UID 81 and GID 81.
Creating group 'systemd-coredump' with GID 979.
Creating user 'systemd-coredump' (systemd Core Dumper) with UID 979 and GID 979.
Creating group 'systemd-network' with GID 978.
Creating user 'systemd-network' (systemd Network Management) with UID 978 and GID 978.
Creating group 'systemd-oom' with GID 977.
Creating user 'systemd-oom' (systemd Userspace OOM Killer) with UID 977 and GID 977.
Creating group 'systemd-journal-remote' with GID 976.
Creating user 'systemd-journal-remote' (systemd Journal Remote) with UID 976 and GID 976.
Creating group 'systemd-resolve' with GID 975.
Creating user 'systemd-resolve' (systemd Resolver) with UID 975 and GID 975.
Creating group 'systemd-timesync' with GID 974.
Creating user 'systemd-timesync' (systemd Time Synchronization) with UID 974 and GID 974.
Creating group 'uuidd' with GID 973.
Creating user 'uuidd' (UUID generator helper daemon) with UID 973 and GID 973.
Created symlink '/etc/systemd/system/getty.target.wants/[email protected]' β†’ '/usr/lib/systemd/system/[email protected]'.
Created symlink '/etc/systemd/system/multi-user.target.wants/remote-fs.target' β†’ '/usr/lib/systemd/system/remote-fs.target'.
Created symlink '/etc/systemd/system/sockets.target.wants/systemd-userdbd.socket' β†’ '/usr/lib/systemd/system/systemd-userdbd.socket'.
:: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
   bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
Optional dependencies for systemd
    libmicrohttpd: systemd-journal-gatewayd and systemd-journal-remote
    apparmor: additional security features
    quota-tools: kernel-level quota management
    systemd-sysvcompat: symlink package to provide sysvinit binaries
    systemd-ukify: combine kernel and initrd into a signed Unified Kernel Image
    polkit: allow administration as unprivileged user
    curl: systemd-journal-upload, machinectl pull-tar and pull-raw [installed]
    gnutls: systemd-journal-gatewayd and systemd-journal-remote
    qrencode: show QR codes
    iptables: firewall features
    libarchive: convert DDIs to tarballs [installed]
    libbpf: support BPF programs
    libpwquality: check password quality
    libfido2: unlocking LUKS2 volumes with FIDO2 token
    libp11-kit: support PKCS#11 [installed]
    tpm2-tss: unlocking LUKS2 volumes with TPM2
(87/88) installing mkinitcpio                                                                 [######################################################] 100%
Optional dependencies for mkinitcpio
    xz: Use lzma or xz compression for the initramfs image [installed]
    bzip2: Use bzip2 compression for the initramfs image [installed]
    lzop: Use lzo compression for the initramfs image
    lz4: Use lz4 compression for the initramfs image [installed]
    mkinitcpio-nfs-utils: Support for root filesystem on NFS
    systemd-ukify: alternative UKI generator
(88/88) installing linux-aarch64                                                              [######################################################] 100%
Optional dependencies for linux-aarch64
    linux-firmware: firmware images needed for some devices
    wireless-regdb: to set the correct wireless channels of your country
:: Running post-transaction hooks...
( 1/13) Creating system user accounts...
( 2/13) Updating journal message catalog...
( 3/13) Reloading system manager configuration...
  Skipped: Running in chroot.
( 4/13) Reloading user manager configuration...
  Skipped: Running in chroot.
( 5/13) Updating udev hardware database...
( 6/13) Applying kernel sysctl settings...
  Skipped: Running in chroot.
( 7/13) Creating temporary files...
Setting access ACL "u::rwx,g::r-x,g:wheel:r-x,g:adm:r-x,m::r-x,o::r-x" on /var/log/journal failed: Invalid argument
error: command failed to execute correctly
( 8/13) Reloading device manager configuration...
  Skipped: Running in chroot.
( 9/13) Arming ConditionNeedsUpdate...
(10/13) Rebuilding certificate stores...
(11/13) Updating module dependencies...
(12/13) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-aarch64.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k 6.17.7-2-aarch64-ARCH -g /boot/initramfs-linux.img
==> Starting build: '6.17.7-2-aarch64-ARCH'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
==> ERROR: /sys does not appear to be mounted. Unable to use autodetection
  -> Running build hook: [microcode]
==> WARNING: architecture 'aarch64' not supported, skipping hook
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
==> WARNING: Possibly missing firmware for module: 'panthor'
==> WARNING: Possibly missing firmware for module: 'radeon'
==> WARNING: Possibly missing firmware for module: 'lontium_lt9611uxc'
==> WARNING: Possibly missing firmware for module: 'amdgpu'
==> WARNING: Possibly missing firmware for module: 'rockchipdrm'
==> WARNING: Possibly missing firmware for module: 'ast'
==> WARNING: Possibly missing firmware for module: 'nouveau'
==> WARNING: Possibly missing firmware for module: 'tegra_drm'
==> WARNING: No module containing the symbol 'drm_privacy_screen_register' found in: 'drivers/platform'
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'wd719x'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'csiostor'
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: '/boot/initramfs-linux.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-aarch64.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k 6.17.7-2-aarch64-ARCH -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: '6.17.7-2-aarch64-ARCH'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [microcode]
==> WARNING: architecture 'aarch64' not supported, skipping hook
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
==> WARNING: Possibly missing firmware for module: 'panthor'
==> WARNING: Possibly missing firmware for module: 'radeon'
==> WARNING: Possibly missing firmware for module: 'lontium_lt9611uxc'
==> WARNING: Possibly missing firmware for module: 'amdgpu'
==> WARNING: Possibly missing firmware for module: 'rockchipdrm'
==> WARNING: Possibly missing firmware for module: 'ast'
==> WARNING: Possibly missing firmware for module: 'nouveau'
==> WARNING: Possibly missing firmware for module: 'tegra_drm'
==> WARNING: No module containing the symbol 'drm_privacy_screen_register' found in: 'drivers/platform'
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'wd719x'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'csiostor'
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: '/boot/initramfs-linux-fallback.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
(13/13) Reloading system bus configuration...
  Skipped: Running in chroot.
β€£  Running depmod for 6.17.7-2-aarch64-ARCH
β€£ + depmod --all 6.17.7-2-aarch64-ARCH
β€£ + bootctl --version
β€£ Version reported by bootctl is 258-1
β€£  Installing systemd-boot…
β€£ + bootctl install --root=/buildroot --install-source=image --all-architectures --no-variables
Created "/buildroot/efi/EFI".
Created "/buildroot/efi/EFI/systemd".
Created "/buildroot/efi/EFI/BOOT".
Created "/buildroot/efi/loader".
Created "/buildroot/efi/loader/keys".
Created "/buildroot/boot/loader/entries".
Created "/buildroot/boot/EFI".
Created "/buildroot/boot/EFI/Linux".
Copied "/buildroot/usr/lib/systemd/boot/efi/systemd-bootaa64.efi" to "/buildroot/efi/EFI/systemd/systemd-bootaa64.efi".
Copied "/buildroot/usr/lib/systemd/boot/efi/systemd-bootaa64.efi" to "/buildroot/efi/EFI/BOOT/BOOTAA64.EFI".
Random seed file /buildroot/efi/loader/random-seed successfully written (32 bytes).
β€£  Generating system users
β€£ + systemd-sysusers --root=/buildroot
β€£  Generating volatile files
β€£ + systemd-tmpfiles --root=/buildroot --boot --create --remove --exclude-prefix=/tmp --exclude-prefix=/var/tmp --exclude-prefix=/run --exclude-prefix=/proc --exclude-prefix=/sys --exclude-prefix=/dev --exclude-prefix=/var
fchownat() of /buildroot/usr/bin/groupmems failed: Invalid argument
β€£  Applying presets…
β€£ + systemctl --root=/buildroot preset-all
Created symlink '/buildroot/etc/systemd/system/systemd-homed.service.wants/systemd-homed-activate.service' β†’ '/usr/lib/systemd/system/systemd-homed-activate.service'.
Created symlink '/buildroot/etc/systemd/system/dbus-org.freedesktop.home1.service' β†’ '/usr/lib/systemd/system/systemd-homed.service'.
Created symlink '/buildroot/etc/systemd/system/multi-user.target.wants/systemd-homed.service' β†’ '/usr/lib/systemd/system/systemd-homed.service'.
Created symlink '/buildroot/etc/systemd/system/multi-user.target.wants/remote-cryptsetup.target' β†’ '/usr/lib/systemd/system/remote-cryptsetup.target'.
Created symlink '/buildroot/etc/systemd/system/multi-user.target.wants/remote-integritysetup.target' β†’ '/usr/lib/systemd/system/remote-integritysetup.target'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-boot-clear-sysfail.service' β†’ '/usr/lib/systemd/system/systemd-boot-clear-sysfail.service'.
Created symlink '/buildroot/etc/systemd/system/multi-user.target.wants/machines.target' β†’ '/usr/lib/systemd/system/machines.target'.
Created symlink '/buildroot/etc/systemd/system/factory-reset.target.wants/systemd-tpm2-clear.service' β†’ '/usr/lib/systemd/system/systemd-tpm2-clear.service'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-boot-update.service' β†’ '/usr/lib/systemd/system/systemd-boot-update.service'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-network-generator.service' β†’ '/usr/lib/systemd/system/systemd-network-generator.service'.
Created symlink '/buildroot/etc/systemd/system/dbus-org.freedesktop.network1.service' β†’ '/usr/lib/systemd/system/systemd-networkd.service'.
Created symlink '/buildroot/etc/systemd/system/multi-user.target.wants/systemd-networkd.service' β†’ '/usr/lib/systemd/system/systemd-networkd.service'.
Created symlink '/buildroot/etc/systemd/system/sockets.target.wants/systemd-networkd.socket' β†’ '/usr/lib/systemd/system/systemd-networkd.socket'.
Created symlink '/buildroot/etc/systemd/system/sockets.target.wants/systemd-networkd-varlink.socket' β†’ '/usr/lib/systemd/system/systemd-networkd-varlink.socket'.
Created symlink '/buildroot/etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service' β†’ '/usr/lib/systemd/system/systemd-networkd-wait-online.service'.
Created symlink '/buildroot/etc/systemd/system/ctrl-alt-del.target' β†’ '/usr/lib/systemd/system/reboot.target'.
Created symlink '/buildroot/etc/systemd/system/dbus-org.freedesktop.resolve1.service' β†’ '/usr/lib/systemd/system/systemd-resolved.service'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-resolved.service' β†’ '/usr/lib/systemd/system/systemd-resolved.service'.
Created symlink '/buildroot/etc/systemd/system/sockets.target.wants/systemd-resolved-varlink.socket' β†’ '/usr/lib/systemd/system/systemd-resolved-varlink.socket'.
Created symlink '/buildroot/etc/systemd/system/sockets.target.wants/systemd-resolved-monitor.socket' β†’ '/usr/lib/systemd/system/systemd-resolved-monitor.socket'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-pstore.service' β†’ '/usr/lib/systemd/system/systemd-pstore.service'.
Created symlink '/buildroot/etc/systemd/system/dbus-org.freedesktop.timesync1.service' β†’ '/usr/lib/systemd/system/systemd-timesyncd.service'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service' β†’ '/usr/lib/systemd/system/systemd-timesyncd.service'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-confext.service' β†’ '/usr/lib/systemd/system/systemd-confext.service'.
Created symlink '/buildroot/etc/systemd/system/sockets.target.wants/systemd-mountfsd.socket' β†’ '/usr/lib/systemd/system/systemd-mountfsd.socket'.
Created symlink '/buildroot/etc/systemd/system/sockets.target.wants/systemd-journald-audit.socket' β†’ '/usr/lib/systemd/system/systemd-journald-audit.socket'.
Created symlink '/buildroot/etc/systemd/system/systemd-journald.service.wants/systemd-journald-audit.socket' β†’ '/usr/lib/systemd/system/systemd-journald-audit.socket'.
Created symlink '/buildroot/etc/systemd/system/sockets.target.wants/systemd-nsresourced.socket' β†’ '/usr/lib/systemd/system/systemd-nsresourced.socket'.
Created symlink '/buildroot/etc/systemd/system/multi-user.target.wants/remote-veritysetup.target' β†’ '/usr/lib/systemd/system/remote-veritysetup.target'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-sysext.service' β†’ '/usr/lib/systemd/system/systemd-sysext.service'.
β€£ + systemctl --root=/buildroot --global preset-all
Created symlink '/buildroot/etc/systemd/user/default.target.wants/machines.target' β†’ '/usr/lib/systemd/user/machines.target'.
Created symlink '/buildroot/etc/systemd/user/default.target.wants/p11-kit-server.service' β†’ '/usr/lib/systemd/user/p11-kit-server.service'.
Created symlink '/buildroot/etc/systemd/user/dbus.service' β†’ '/usr/lib/systemd/user/dbus-broker.service'.
Created symlink '/buildroot/etc/systemd/user/timers.target.wants/systemd-tmpfiles-clean.timer' β†’ '/usr/lib/systemd/user/systemd-tmpfiles-clean.timer'.
Created symlink '/buildroot/etc/systemd/user/basic.target.wants/systemd-tmpfiles-setup.service' β†’ '/usr/lib/systemd/user/systemd-tmpfiles-setup.service'.
β€£  Generating hardware database
β€£ + systemd-hwdb --root=/buildroot --usr --strict update
β€£ + rm -rf -- /work/home/kwok/.cache/mkosi/mkosi-workspace-ud28g2cp/root/var/lib/pacman
β€£ + systemd-repart --version
β€£ Version reported by systemd-repart is 258-1
β€£ + systemd-repart --version
β€£ Version reported by systemd-repart is 258-1
β€£  Generating disk image
β€£ + systemd-repart --empty=allow --size=auto --dry-run=no --json=pretty --no-pager --root=/buildroot --offline=yes --seed 423c8924-8676-429b-934b-c1b2fd3a7473 /work/home/kwok/.cache/mkosi/mkosi-workspace-ud28g2cp/staging/image.raw --empty=create --defer-partitions esp,xbootldr --generate-fstab=/etc/fstab --generate-crypttab=/etc/crypttab --append-fstab=auto --definitions /work/home/kwok/.cache/mkosi/mkosi-workspace-ud28g2cp/repart-definitions
MountPoint= is not specified for any eligible partitions, not generating /etc/fstab
EncryptedVolume= is not specified for any eligible partitions, not generating /etc/crypttab
Pre-populating ext4 filesystem of partition 10-root.conf twice to calculate minimal partition size
Preparing to populate ext4 filesystem.
Ready to populate ext4 filesystem.
mke2fs 1.47.2 (1-Jan-2025)
Discarding device blocks: done
Creating filesystem with 268435456 4k blocks and 67108864 inodes
Filesystem UUID: acba9c20-cf8f-4922-98f4-fef6e709a535
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
        102400000, 214990848

Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks): done
Copying files into the device: done
Writing superblocks and filesystem accounting information: done

/var/tmp/.#repartffc57d25b735c407 successfully formatted as ext4 (label "root-arm64", uuid acba9c20-cf8f-4922-98f4-fef6e709a535)
Minimal partition size of ext4 filesystem of partition 10-root.conf is 1.1G
mke2fs 1.47.2 (1-Jan-2025)
Discarding device blocks: done
Creating filesystem with 311279 4k blocks and 77920 inodes
Filesystem UUID: 6fd3acee-05a5-4dad-8228-18ad24dc33d8
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912

Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Copying files into the device: done
Writing superblocks and filesystem accounting information: done

/var/tmp/.#repartffc57d25b735c407 successfully formatted as ext4 (label "root-arm64", uuid 6fd3acee-05a5-4dad-8228-18ad24dc33d8)
Automatically determined minimal disk image size as 1.6G.
Sized '/work/home/kwok/.cache/mkosi/mkosi-workspace-ud28g2cp/staging/image.raw' to 1.6G.
Applying changes to /work/home/kwok/.cache/mkosi/mkosi-workspace-ud28g2cp/staging/image.raw.
Copying in '/var/tmp/.#repartffc57d25b735c407' (1.1G) on block level into future partition 1.
Copying in of '/var/tmp/.#repartffc57d25b735c407' on block level completed.
Syncing future partition 1 contents to disk.
Block level copying and synchronization of partition 1 complete in 1.095210s (1G/s).
Adding new partition 1 to partition table.
Writing new partition table.
All done.
β€£ [
    {
        "type": "esp",
        "label": "esp",
        "uuid": "2893d317-8fbb-4c91-97a5-bf3fc2c26524",
        "partno": 0,
        "file": "/work/home/kwok/.cache/mkosi/mkosi-workspace-ud28g2cp/repart-definitions/00-esp.conf",
        "node": "/work/home/kwok/.cache/mkosi/mkosi-workspace-ud28g2cp/staging/image.raw1",
        "offset": 1048576,
        "old_size": 0,
        "raw_size": 536870912,
        "old_padding": 0,
        "raw_padding": 0,
        "activity": "create"
    },
    {
        "type": "root-arm64",
        "label": "root-arm64",
        "uuid": "c1378606-e20e-4902-9687-851ae40a1575",
        "partno": 1,
        "file": "/work/home/kwok/.cache/mkosi/mkosi-workspace-ud28g2cp/repart-definitions/10-root.conf",
        "node": "/work/home/kwok/.cache/mkosi/mkosi-workspace-ud28g2cp/staging/image.raw2",
        "offset": 537919488,
        "old_size": 0,
        "raw_size": 1274998784,
        "old_padding": 0,
        "raw_padding": 0,
        "activity": "create"
    }
]
β€£ A bootable image was requested but no kernel was found
β€£ + rm -rf -- /work/home/kwok/.cache/mkosi/mkosi-workspace-ud28g2cp /work/home/kwok/.cache/mkosi/mkosi-workspace-ud28g2cp/root
Traceback (most recent call last):
  File "/var/opt/pipx/venvs/mkosi/lib/python3.13/site-packages/mkosi/run.py", line 51, in uncaught_exception_handler
    yield
  File "/var/opt/pipx/venvs/mkosi/lib/python3.13/site-packages/mkosi/run.py", line 91, in fork_and_wait
    target(*args, **kwargs)
    ~~~~~~^^^^^^^^^^^^^^^^^
  File "/var/opt/pipx/venvs/mkosi/lib/python3.13/site-packages/mkosi/__init__.py", line 4815, in run_build
    build_image(
    ~~~~~~~~~~~^
        Context(
        ^^^^^^^^
    ...<7 lines>...
        )
        ^
    )
    ^
  File "/var/opt/pipx/venvs/mkosi/lib/python3.13/site-packages/mkosi/__init__.py", line 3961, in build_image
    install_kernel(context, partitions)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/var/opt/pipx/venvs/mkosi/lib/python3.13/site-packages/mkosi/__init__.py", line 2206, in install_kernel
    die("A bootable image was requested but no kernel was found")
    ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/opt/pipx/venvs/mkosi/lib/python3.13/site-packages/mkosi/log.py", line 24, in die
    sys.exit(1)
    ~~~~~~~~^^^
SystemExit: 1
β€£ + tput cnorm
β€£ + tput smam

MoltenArmor avatar Nov 03 '25 10:11 MoltenArmor

This issue does not occur when building a x86_64 image.

Contents during the (failed) Arch Linux ARM build

/boot:

total 104684
-rw-r--r--  1 root root 42011136 Nov  3 01:40 Image
-rw-r--r--  1 root root 16029600 Nov  3 01:40 Image.gz
drwxr-xr-x 16 root root     4096 Nov  3 10:29 dtbs
-rw-------  1 root root 24571670 Nov  3 10:29 initramfs-linux-fallback.img
-rw-------  1 root root 24571670 Nov  3 10:29 initramfs-linux.img
drwx------  2 root root     4096 Nov  3 10:29 loader

/usr/lib/modules/6.17.7-2-aarch64-ARCH:

total 4516
drwxr-xr-x 10 root root    4096 Nov  3 10:29 kernel
-rw-r--r--  1 root root 1181055 Nov  3 10:29 modules.alias
-rw-r--r--  1 root root 1147614 Nov  3 10:29 modules.alias.bin
-rw-r--r--  1 root root   46502 Nov  3 01:40 modules.builtin
-rw-r--r--  1 root root   23476 Nov  3 10:29 modules.builtin.alias.bin
-rw-r--r--  1 root root   48180 Nov  3 10:29 modules.builtin.bin
-rw-r--r--  1 root root  266526 Nov  3 01:40 modules.builtin.modinfo
-rw-r--r--  1 root root  340211 Nov  3 10:29 modules.dep
-rw-r--r--  1 root root  493996 Nov  3 10:29 modules.dep.bin
-rw-r--r--  1 root root     347 Nov  3 10:29 modules.devname
-rw-r--r--  1 root root  145852 Nov  3 01:40 modules.order
-rw-r--r--  1 root root     945 Nov  3 10:29 modules.softdep
-rw-r--r--  1 root root  400909 Nov  3 10:29 modules.symbols
-rw-r--r--  1 root root  490526 Nov  3 10:29 modules.symbols.bin
-rw-r--r--  1 root root      55 Nov  3 10:29 modules.weakdep

For comparison, contents during a successful x86_64 Arch Linux build

/boot:

total 4
drwx------ 2 root root 4096 Nov  3 10:10 loader

/usr/lib/modules/6.17.6-arch1-1:

total 23520
drwxr-xr-x 13 root root     4096 Nov  3 10:11 kernel
-rw-r--r--  1 root root  1707422 Nov  3 10:11 modules.alias
-rw-r--r--  1 root root  1661188 Nov  3 10:11 modules.alias.bin
-rw-r--r--  1 root root     7924 Oct 29 22:23 modules.builtin
-rw-r--r--  1 root root    10460 Nov  3 10:11 modules.builtin.alias.bin
-rw-r--r--  1 root root     9869 Nov  3 10:11 modules.builtin.bin
-rw-r--r--  1 root root    82418 Oct 29 22:23 modules.builtin.modinfo
-rw-r--r--  1 root root   909506 Nov  3 10:11 modules.dep
-rw-r--r--  1 root root  1183524 Nov  3 10:11 modules.dep.bin
-rw-r--r--  1 root root      409 Nov  3 10:11 modules.devname
-rw-r--r--  1 root root   259821 Oct 29 22:23 modules.order
-rw-r--r--  1 root root     2590 Nov  3 10:11 modules.softdep
-rw-r--r--  1 root root   760306 Nov  3 10:11 modules.symbols
-rw-r--r--  1 root root   927290 Nov  3 10:11 modules.symbols.bin
-rw-r--r--  1 root root       55 Nov  3 10:11 modules.weakdep
-rw-r--r--  1 root root        6 Oct 29 22:23 pkgbase
-rw-r--r--  1 root root 16519359 Oct 29 22:23 vmlinuz

MoltenArmor avatar Nov 03 '25 10:11 MoltenArmor

Arch Linux ARM doesn't follow the regular Arch x86 kernel layout where the kernel image is supposed to be put in /usr/lib/modules. Given Arch Linux ARM is not an official Arch project, I'm not inclined to support it with hacks and workarounds in mkosi.

DaanDeMeyer avatar Dec 16 '25 11:12 DaanDeMeyer