Skip to content

content mkosi.extra not copied #3927

@Masber

Description

@Masber

mkosi commit the issue has been seen with

ab05ead

Used host distribution

Arch Linux

Used target distribution

Arch Linux

Linux kernel version used

6.16.7-arch1-1

CPU architectures issue was seen on

x86_64

Unexpected behaviour you saw

Dear mkosi development team,

I am trying to create a base image and a portable service image running the command below:

sudo mkosi -f --debug -C /home/masber/mkosi_conf/

For some reason the result image neither contains /etc/os-release nor /usr/lib/os-release so I am trying to copy the file from my host by using mkosi.extra

❯ cat mkosi.extra/usr/lib/os-release
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo

The portable service image gets created but I can't attach it because os-release file is missing

❯ sudo portablectl attach -p trusted mkosi.output/nginx.raw
(Matching unit files with prefix 'nginx'.)
AttachImage failed: Image '/home/masber/mkosi_conf/mkosi.output/nginx.raw' lacks `os-release` data, refusing.

But I can see from the logs that the file was copied:

‣  Copying in extra file trees…
‣ + cp --version
‣ + cp --recursive --no-dereference --preserve=mode,links --reflink=auto --copy-contents /work/home/masber/mkosi_conf/mkosi.extra /work/var/tmp/mkosi-workspace-yquwmqv0/root --keep-directory-symlink --no-target-directory

I would like to understand why os-release is missing and how can I create a valid portable service

kind regards

Used mkosi config

### IMAGE: base
# mkosi.images/base/mkosi.conf
[Output]
Format=directory

[Content]
CleanPackageMetadata=no
Packages=systemd
         udev



### IMAGE: nginx
# mkosi.images/nginx/mkosi.conf
[Config]
Dependencies=base

[Output]
Format=portable
Overlay=yes

[Content]
BaseTrees=%O/base
# ExtraTrees=/usr/lib/os-release:/usr/lib/os-release
Packages=nginx



### IMAGE: main
# mkosi.conf
[Output]
OutputDirectory=mkosi.output
CacheDirectory=mkosi.cache

mkosi output

❯ sudo mkosi -f --debug -C /home/masber/mkosi_conf/
‣ Loading configuration file /home/masber/mkosi_conf/mkosi.conf
‣ /home/masber/mkosi_conf/mkosi.conf: Setting CacheDirectory should be configured in [Build], not [Output].
‣ Loading configuration file /home/masber/mkosi_conf/mkosi.images/base/mkosi.conf
‣ Loading configuration file /home/masber/mkosi_conf/mkosi.images/nginx/mkosi.conf
‣ Removing output files of base image…
‣ Acquiring lock on /home/masber/mkosi_conf/mkosi.output/base
‣ Acquired lock on /home/masber/mkosi_conf/mkosi.output/base
‣ + rm -rf -- /work/home/masber/mkosi_conf/mkosi.output/base
‣ Removing output files of nginx image…
‣ Acquiring lock on /home/masber/mkosi_conf/mkosi.output/nginx
‣ Acquired lock on /home/masber/mkosi_conf/mkosi.output/nginx
‣ + rm -rf -- /work/home/masber/mkosi_conf/mkosi.output/nginx /work/home/masber/mkosi_conf/mkosi.output/nginx.raw
‣ Removing output files of main image…
‣ Acquiring lock on /home/masber/mkosi_conf/mkosi.output/image
‣ Acquired lock on /home/masber/mkosi_conf/mkosi.output/image
‣ + rm -rf -- /work/home/masber/mkosi_conf/mkosi.output/image /work/home/masber/mkosi_conf/mkosi.output/image.raw
‣ Loading configuration file /tmp/tmp1glgql5o/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp1glgql5o/resources/mkosi-initrd/mkosi.conf.d/arch.conf
‣ Loading configuration file /tmp/tmp1glgql5o/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp1glgql5o/resources/mkosi-initrd/mkosi.conf.d/arch.conf
‣ Validating certificates and keys
‣ Populating pacman keyring
‣ + pacman-key --init
‣ + pacman-key --populate
==> Appending keys from archlinux.gpg...
==> Updating trust database...
gpg: next trustdb check due at 2025-10-10
‣ Syncing package manager metadata
‣ + 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 x86_64 --color auto --noconfirm --sync --refresh
:: Synchronizing package databases...
 core is up to date
 extra                                                                8.0 MiB  4.18 MiB/s 00:02 [########################################################] 100%
‣ + rm -rf -- /work/var/tmp/mkosi-workspace-t13mq2ya /work/var/tmp/mkosi-workspace-t13mq2ya/root
‣ Building base 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 x86_64 --color auto --noconfirm --sync --needed --assume-installed initramfs filesystem
resolving dependencies...
looking for conflicting packages...

Packages (2) iana-etc-20250612-1  filesystem-2025.05.03-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 x86_64 --color auto --noconfirm --sync --needed --assume-installed initramfs systemd udev
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: pam will be installed before its systemd-libs dependency

Packages (77) acl-2.3.2-1  attr-2.5.2-1  audit-4.0.5-1  bash-5.3.3-2  brotli-1.1.0-3  bzip2-1.0.8-6  ca-certificates-20240618-1
              ca-certificates-mozilla-3.116-1  ca-certificates-utils-20240618-1  coreutils-9.7-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.35-1  e2fsprogs-1.47.3-1  expat-2.7.3-1  file-5.46-5
              findutils-4.10.0-3  gcc-libs-15.2.1+r22+gc4e96a094636-1  gdbm-1.26-1  glibc-2.42+r17+gd7274d718e6f-1  gmp-6.3.0-2  grep-3.12-2  gzip-1.14-2
              hwdata-0.399-1  json-c-0.18-2  kbd-2.8.0-1  keyutils-1.6.3-3  kmod-34.2-1  krb5-1.21.3-2  libcap-2.76-1  libcap-ng-0.8.5-3  libelf-0.193-5
              libevent-2.1.12-4  libffi-3.5.2-1  libgcrypt-1.11.2-1  libgpg-error-1.55-1  libidn2-2.3.7-1  libldap-2.6.10-2  libnghttp2-1.67.1-1
              libnghttp3-1.12.0-1  libnsl-2.0.1-1  libp11-kit-0.25.9-1  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  linux-api-headers-6.16-2  lmdb-0.9.33-1
              lz4-1:1.10.0-2  ncurses-6.5-4  openssl-3.5.3-1  p11-kit-0.25.9-1  pam-1.7.1-1  pambase-20250719-1  pcre2-10.46-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-4  tzdata-2025b-1  util-linux-2.41.2-1
              util-linux-libs-2.41.2-1  xz-5.8.1-1  zlib-1:1.3.1-2  zstd-1.5.7-2  systemd-258-4

Total Installed Size:  415.18 MiB

:: Proceed with installation? [Y/n]
(77/77) checking keys in keyring                                                                [########################################################] 100%
(77/77) checking package integrity                                                              [########################################################] 100%
(77/77) loading package files                                                                   [########################################################] 100%
(77/77) checking for file conflicts                                                             [########################################################] 100%
:: Processing package changes...
( 1/77) installing linux-api-headers                                                            [########################################################] 100%
( 2/77) installing tzdata                                                                       [########################################################] 100%
Optional dependencies for tzdata
    bash: for tzselect [pending]
    glibc: for zdump, zic [pending]
( 3/77) installing glibc                                                                        [########################################################] 100%
Optional dependencies for glibc
    gd: for memusagestat
    perl: for mtrace
( 4/77) installing gcc-libs                                                                     [########################################################] 100%
( 5/77) installing ncurses                                                                      [########################################################] 100%
Optional dependencies for ncurses
    bash: for ncursesw6-config [pending]
( 6/77) installing readline                                                                     [########################################################] 100%
( 7/77) installing bash                                                                         [########################################################] 100%
Optional dependencies for bash
    bash-completion: for tab completion
( 8/77) installing zlib                                                                         [########################################################] 100%
( 9/77) installing sqlite                                                                       [########################################################] 100%
(10/77) installing util-linux-libs                                                              [########################################################] 100%
Optional dependencies for util-linux-libs
    python: python bindings to libmount
(11/77) installing e2fsprogs                                                                    [########################################################] 100%
Optional dependencies for e2fsprogs
    lvm2: for e2scrub
    util-linux: for e2scrub [pending]
    smtp-forwarder: for e2scrub_fail script
(12/77) installing keyutils                                                                     [########################################################] 100%
(13/77) installing gdbm                                                                         [########################################################] 100%
(14/77) installing openssl                                                                      [########################################################] 100%
Optional dependencies for openssl
    ca-certificates [pending]
    perl
(15/77) installing libsasl                                                                      [########################################################] 100%
(16/77) installing libldap                                                                      [########################################################] 100%
(17/77) installing libevent                                                                     [########################################################] 100%
Optional dependencies for libevent
    python: event_rpcgen.py
(18/77) installing libverto                                                                     [########################################################] 100%
(19/77) installing lmdb                                                                         [########################################################] 100%
(20/77) installing krb5                                                                         [########################################################] 100%
(21/77) installing libcap-ng                                                                    [########################################################] 100%
(22/77) installing audit                                                                        [########################################################] 100%
Optional dependencies for audit
    libldap: for audispd-zos-remote [installed]
    sh: for augenrules [installed]
(23/77) installing libxcrypt                                                                    [########################################################] 100%
(24/77) installing libtirpc                                                                     [########################################################] 100%
(25/77) installing libnsl                                                                       [########################################################] 100%
(26/77) installing pambase                                                                      [########################################################] 100%
(27/77) installing pam                                                                          [########################################################] 100%
(28/77) installing libcap                                                                       [########################################################] 100%
(29/77) installing libgpg-error                                                                 [########################################################] 100%
(30/77) installing libgcrypt                                                                    [########################################################] 100%
(31/77) installing lz4                                                                          [########################################################] 100%
(32/77) installing xz                                                                           [########################################################] 100%
(33/77) installing zstd                                                                         [########################################################] 100%
(34/77) installing systemd-libs                                                                 [########################################################] 100%
(35/77) installing acl                                                                          [########################################################] 100%
(36/77) installing device-mapper                                                                [########################################################] 100%
(37/77) installing popt                                                                         [########################################################] 100%
(38/77) installing json-c                                                                       [########################################################] 100%
(39/77) installing cryptsetup                                                                   [########################################################] 100%
(40/77) installing expat                                                                        [########################################################] 100%
(41/77) installing dbus                                                                         [########################################################] 100%
(42/77) installing dbus-broker                                                                  [########################################################] 100%
(43/77) installing dbus-broker-units                                                            [########################################################] 100%
(44/77) installing dbus-units                                                                   [########################################################] 100%
(45/77) installing attr                                                                         [########################################################] 100%
(46/77) installing gmp                                                                          [########################################################] 100%
(47/77) installing coreutils                                                                    [########################################################] 100%
(48/77) installing sed                                                                          [########################################################] 100%
(49/77) installing bzip2                                                                        [########################################################] 100%
(50/77) installing pcre2                                                                        [########################################################] 100%
Optional dependencies for pcre2
    sh: for pcre2-config [installed]
(51/77) installing grep                                                                         [########################################################] 100%
(52/77) installing gzip                                                                         [########################################################] 100%
Optional dependencies for gzip
    less: zless support
    util-linux: zmore support [pending]
    diffutils: zdiff/zcmp support
(53/77) installing kbd                                                                          [########################################################] 100%
(54/77) installing kmod                                                                         [########################################################] 100%
(55/77) installing hwdata                                                                       [########################################################] 100%
(56/77) installing libunistring                                                                 [########################################################] 100%
(57/77) installing libidn2                                                                      [########################################################] 100%
(58/77) installing findutils                                                                    [########################################################] 100%
(59/77) installing libtasn1                                                                     [########################################################] 100%
(60/77) installing libffi                                                                       [########################################################] 100%
(61/77) installing libp11-kit                                                                   [########################################################] 100%
(62/77) installing p11-kit                                                                      [########################################################] 100%
(63/77) installing ca-certificates-utils                                                        [########################################################] 100%
(64/77) installing ca-certificates-mozilla                                                      [########################################################] 100%
(65/77) installing ca-certificates                                                              [########################################################] 100%
(66/77) installing brotli                                                                       [########################################################] 100%
(67/77) installing libnghttp2                                                                   [########################################################] 100%
(68/77) installing libnghttp3                                                                   [########################################################] 100%
(69/77) installing libpsl                                                                       [########################################################] 100%
(70/77) installing libssh2                                                                      [########################################################] 100%
(71/77) installing curl                                                                         [########################################################] 100%
(72/77) installing libelf                                                                       [########################################################] 100%
(73/77) installing libseccomp                                                                   [########################################################] 100%
(74/77) installing file                                                                         [########################################################] 100%
(75/77) installing shadow                                                                       [########################################################] 100%
(76/77) installing util-linux                                                                   [########################################################] 100%
Optional dependencies for util-linux
    words: default dictionary for look
(77/77) 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'.
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
    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
:: Running post-transaction hooks...
( 1/11) Creating system user accounts...
( 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...
( 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.
‣  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
‣  Applying presets…
‣ + systemctl --root=/buildroot preset-all
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/multi-user.target.wants/remote-veritysetup.target''/usr/lib/systemd/system/remote-veritysetup.target'.
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/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.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/sockets.target.wants/systemd-mountfsd.socket''/usr/lib/systemd/system/systemd-mountfsd.socket'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-sysext.service''/usr/lib/systemd/system/systemd-sysext.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/sysinit.target.wants/systemd-confext.service''/usr/lib/systemd/system/systemd-confext.service'.
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/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/sysinit.target.wants/systemd-network-generator.service''/usr/lib/systemd/system/systemd-network-generator.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/sysinit.target.wants/systemd-boot-clear-sysfail.service''/usr/lib/systemd/system/systemd-boot-clear-sysfail.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'.
Created symlink '/buildroot/etc/systemd/system/ctrl-alt-del.target''/usr/lib/systemd/system/reboot.target'.
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/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-pstore.service''/usr/lib/systemd/system/systemd-pstore.service'.
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-update.service''/usr/lib/systemd/system/systemd-boot-update.service'.
‣ + systemctl --root=/buildroot --global preset-all
Created symlink '/buildroot/etc/systemd/user/dbus.service''/usr/lib/systemd/user/dbus-broker.service'.
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/default.target.wants/machines.target''/usr/lib/systemd/user/machines.target'.
Created symlink '/buildroot/etc/systemd/user/basic.target.wants/systemd-tmpfiles-setup.service''/usr/lib/systemd/user/systemd-tmpfiles-setup.service'.
Created symlink '/buildroot/etc/systemd/user/timers.target.wants/systemd-tmpfiles-clean.timer''/usr/lib/systemd/user/systemd-tmpfiles-clean.timer'.
‣  Generating hardware database
‣ + systemd-hwdb --root=/buildroot --usr --strict update
‣ + kernel-install --help
‣ + kernel-install --version
‣ Version reported by kernel-install is 257.9-1-arch
‣ + kernel-install --root=/buildroot --json=pretty inspect
‣ {
    "MachineID": "b5b896b32e85449599850c3927658dc9",
    "KernelImageType": "unknown",
    "Layout": "bls",
    "BootRoot": "boot",
    "EntryTokenType": "os-id",
    "EntryToken": "arch",
    "EntryDirectory": "boot/arch/KERNEL_VERSION",
    "KernelVersion": null,
    "Kernel": null,
    "Initrds": null,
    "InitrdGenerator": null,
    "UKIGenerator": null,
    "Plugins": [
        "usr/lib/kernel/install.d/50-depmod.install",
        "usr/lib/kernel/install.d/90-loaderentry.install",
        "usr/lib/kernel/install.d/90-uki-copy.install"
    ],
    "PluginEnvironment": [
        "LC_COLLATE=C.UTF-8",
        "KERNEL_INSTALL_VERBOSE=0",
        "KERNEL_INSTALL_IMAGE_TYPE=unknown",
        "KERNEL_INSTALL_MACHINE_ID=b5b896b32e85449599850c3927658dc9",
        "KERNEL_INSTALL_ENTRY_TOKEN=arch",
        "KERNEL_INSTALL_BOOT_ROOT=boot",
        "KERNEL_INSTALL_LAYOUT=bls",
        "KERNEL_INSTALL_INITRD_GENERATOR=",
        "KERNEL_INSTALL_UKI_GENERATOR=",
        "KERNEL_INSTALL_STAGING_AREA=/tmp/kernel-install.staging.XXXXXX"
    ]
}
‣  /home/masber/mkosi_conf/mkosi.output/base size is 484.9M.
‣ + rm -rf -- /work/var/tmp/mkosi-workspace-ibetf8e7
‣ Building nginx image
‣  Mounting base trees…
‣   Installing extra packages for 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 x86_64 --color auto --noconfirm --sync --needed --assume-installed initramfs nginx
resolving dependencies...
looking for conflicting packages...

Packages (2) mailcap-2.1.54-2  nginx-1.28.0-4

Total Installed Size:  1.67 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 mailcap                                                                        [########################################################] 100%
(2/2) installing nginx                                                                          [########################################################] 100%
Optional dependencies for nginx
    nginx-mod-geoip: GeoIP support
    nginx-mod-image-filter: transform images
    nginx-mod-mail: proxy IMAP, POP and SMTP protocols
    nginx-mod-perl: perl variables and location handlers
    nginx-mod-stream: proxy TCP/UDP data streams
    nginx-mod-xslt: transform XML responses
:: Running post-transaction hooks...
(1/2) Reloading system manager configuration...
  Skipped: Running in chroot.
(2/2) Arming ConditionNeedsUpdate...
‣ Removing duplicate path /etc/ld.so.cache from overlay
‣ Removing duplicate path /var/cache/ldconfig/aux-cache from overlay
‣ + rm -rf -- /work/var/tmp/mkosi-workspace-dkoz3280/root/var/lib/pacman
‣  Building portable extension image
‣ + systemd-repart --root=/buildroot --json=pretty --dry-run=no --no-pager --offline=yes --seed e6d26239-76d6-4f91-8813-d7307ef1dbb2 --empty=create --size=auto --definitions /work/tmp/tmp1glgql5o/resources/repart/definitions/portable-unsigned.repart.d /work/var/tmp/mkosi-workspace-dkoz3280/staging/nginx.raw
Pre-populating erofs filesystem of partition 10-root.conf twice to calculate minimal partition size
Preparing to populate erofs filesystem.
Ready to populate erofs filesystem.
/var/tmp/.#repart9e42bf59b0becec2 successfully formatted as erofs (uuid ae7f39b5-f6a5-4039-9e49-3b422a4ec121, no label)
Minimal partition size of erofs filesystem of partition 10-root.conf is 1.6M
Automatically determined minimal disk image size as 2.7M.
Sized '/work/var/tmp/mkosi-workspace-dkoz3280/staging/nginx.raw' to 2.7M.
Applying changes to /work/var/tmp/mkosi-workspace-dkoz3280/staging/nginx.raw.
Copying in '/var/tmp/.#repart9e42bf59b0becec2' (1.6M) on block level into future partition 0.
Copying in of '/var/tmp/.#repart9e42bf59b0becec2' on block level completed.    nitions/portable-unsigned.repart.d/10-root.conf 1.6M/1.6M 100%
Syncing future partition 0 contents to disk.
Block level copying and synchronization of partition 0 complete in 4.326ms.
Adding new partition 0 to partition table.
Writing new partition table.
All done.
‣ [
    {
        "type": "root-x86-64",
        "label": "root-x86-64",
        "uuid": "b03f8151-6f38-4b49-97c4-fbde8defa266",
        "partno": 0,
        "file": "/work/tmp/tmp1glgql5o/resources/repart/definitions/portable-unsigned.repart.d/10-root.conf",
        "node": "/work/var/tmp/mkosi-workspace-dkoz3280/staging/nginx.raw1",
        "offset": 20480,
        "old_size": 0,
        "raw_size": 2793472,
        "old_padding": 0,
        "raw_padding": 0,
        "activity": "create"
    }
]
‣  /home/masber/mkosi_conf/mkosi.output/nginx.raw size is 2.7M, consumes 1.7M.
‣ + rm -rf -- /work/var/tmp/mkosi-workspace-dkoz3280 /work/var/tmp/mkosi-workspace-dkoz3280/root
‣ + /usr/bin/systemd-repart --version
‣ Version reported by /usr/bin/systemd-repart is 257.9-1-arch
‣ 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 x86_64 --color auto --noconfirm --sync --needed --assume-installed initramfs filesystem
resolving dependencies...
looking for conflicting packages...

Packages (2) iana-etc-20250612-1  filesystem-2025.05.03-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%
‣  Copying in extra file trees…
‣ + cp --version
‣ + cp --recursive --no-dereference --preserve=mode,links --reflink=auto --copy-contents /work/home/masber/mkosi_conf/mkosi.extra /work/var/tmp/mkosi-workspace-yquwmqv0/root --keep-directory-symlink --no-target-directory
‣  Generating system users
‣ + systemd-sysusers --root=/buildroot
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 'adm' with GID 999.
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.
‣  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
‣  Applying presets…
‣ + systemctl --root=/buildroot preset-all
‣ + systemctl --root=/buildroot --global preset-all
‣  Generating hardware database
‣ + systemd-hwdb --root=/buildroot --usr --strict update
No hwdb files found, skipping.
‣ + rm -rf -- /work/var/tmp/mkosi-workspace-yquwmqv0/root/var/lib/pacman
‣ + systemd-repart --version
‣ Version reported by systemd-repart is 257.9-1-arch
‣ + systemd-repart --version
‣ Version reported by systemd-repart is 257.9-1-arch
‣  Generating disk image
‣ + systemd-repart --empty=allow --size=auto --dry-run=no --json=pretty --no-pager --root=/buildroot --offline=yes --seed e6d26239-76d6-4f91-8813-d7307ef1dbb2 /work/var/tmp/mkosi-workspace-yquwmqv0/staging/image.raw --empty=create --defer-partitions esp,xbootldr --generate-fstab=/etc/fstab --generate-crypttab=/etc/crypttab --definitions /work/var/tmp/mkosi-workspace-yquwmqv0/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.3 (8-Jul-2025)
Discarding device blocks: done
Creating filesystem with 268435456 4k blocks and 67108864 inodes
Filesystem UUID: 17867036-efc6-483c-9b6d-0e55f682cf6d
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/.#repart3ae672d574c26f70 successfully formatted as ext4 (label "root-x86-64", uuid 17867036-efc6-483c-9b6d-0e55f682cf6d)
Minimal partition size of ext4 filesystem of partition 10-root.conf is 33.3M
mke2fs 1.47.3 (8-Jul-2025)
Discarding device blocks: done
Creating filesystem with 8540 4k blocks and 2144 inodes

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

/var/tmp/.#repart3ae672d574c26f70 successfully formatted as ext4 (label "root-x86-64", uuid ae7f39b5-f6a5-4039-9e49-3b422a4ec121)
Automatically determined minimal disk image size as 34.3M.
Sized '/work/var/tmp/mkosi-workspace-yquwmqv0/staging/image.raw' to 34.3M.
Applying changes to /work/var/tmp/mkosi-workspace-yquwmqv0/staging/image.raw.
Copying in '/var/tmp/.#repart3ae672d574c26f70' (33.3M) on block level into future partition 0.
Copying in of '/var/tmp/.#repart3ae672d574c26f70' on block level completed.    rt-definitions/10-root.conf 33.3M/33.3M 100%
Syncing future partition 0 contents to disk.
Block level copying and synchronization of partition 0 complete in 40.351ms.
Adding new partition 0 to partition table.
Writing new partition table.
All done.
‣ [
    {
        "type": "root-x86-64",
        "label": "root-x86-64",
        "uuid": "b03f8151-6f38-4b49-97c4-fbde8defa266",
        "partno": 0,
        "file": "/work/var/tmp/mkosi-workspace-yquwmqv0/repart-definitions/10-root.conf",
        "node": "/work/var/tmp/mkosi-workspace-yquwmqv0/staging/image.raw1",
        "offset": 1048576,
        "old_size": 0,
        "raw_size": 34979840,
        "old_padding": 0,
        "raw_padding": 0,
        "activity": "create"
    }
]
‣ + kernel-install --help
‣ + kernel-install --version
‣ Version reported by kernel-install is 257.9-1-arch
‣ + kernel-install --root=/buildroot --json=pretty inspect
‣ {
    "MachineID": "b3b4173f82f44616875bede395365796",
    "KernelImageType": "unknown",
    "Layout": "bls",
    "BootRoot": "boot",
    "EntryTokenType": "os-id",
    "EntryToken": "arch",
    "EntryDirectory": "boot/arch/KERNEL_VERSION",
    "KernelVersion": null,
    "Kernel": null,
    "Initrds": null,
    "InitrdGenerator": null,
    "UKIGenerator": null,
    "Plugins": [],
    "PluginEnvironment": [
        "LC_COLLATE=C.UTF-8",
        "KERNEL_INSTALL_VERBOSE=0",
        "KERNEL_INSTALL_IMAGE_TYPE=unknown",
        "KERNEL_INSTALL_MACHINE_ID=b3b4173f82f44616875bede395365796",
        "KERNEL_INSTALL_ENTRY_TOKEN=arch",
        "KERNEL_INSTALL_BOOT_ROOT=boot",
        "KERNEL_INSTALL_LAYOUT=bls",
        "KERNEL_INSTALL_INITRD_GENERATOR=",
        "KERNEL_INSTALL_UKI_GENERATOR=",
        "KERNEL_INSTALL_STAGING_AREA=/tmp/kernel-install.staging.XXXXXX"
    ]
}
‣  Formatting ESP/XBOOTLDR partitions
‣ + systemd-repart --empty=allow --size=auto --dry-run=no --json=pretty --no-pager --root=/buildroot --offline=yes --seed e6d26239-76d6-4f91-8813-d7307ef1dbb2 /work/var/tmp/mkosi-workspace-yquwmqv0/staging/image.raw --definitions /work/var/tmp/mkosi-workspace-yquwmqv0/repart-definitions
Automatically determined minimal disk image size as 34.3M, current image size is 34.3M.
File '/work/var/tmp/mkosi-workspace-yquwmqv0/staging/image.raw' already is of requested size or larger, not growing. (34.3M >= 34.3M)
No changes.
‣ [
    {
        "type": "root-x86-64",
        "label": "root-x86-64",
        "uuid": "b03f8151-6f38-4b49-97c4-fbde8defa266",
        "partno": 0,
        "file": "/work/var/tmp/mkosi-workspace-yquwmqv0/repart-definitions/10-root.conf",
        "node": "/work/var/tmp/mkosi-workspace-yquwmqv0/staging/image.raw1",
        "offset": 1048576,
        "old_size": 34979840,
        "raw_size": 34979840,
        "old_padding": 0,
        "raw_padding": 0,
        "activity": "unchanged"
    }
]
‣  /home/masber/mkosi_conf/mkosi.output/image.raw size is 34.4M, consumes 33.4M.
‣ + rm -rf -- /work/var/tmp/mkosi-workspace-yquwmqv0 /work/var/tmp/mkosi-workspace-yquwmqv0/root
‣ + tput cnorm
‣ + tput smam

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions