these 2 derivations will be built: /nix/store/6j8c5yj4hijlmlhdcgjmfb0n9vz2h468-rootfs-ubuntu-22_04.drv /nix/store/7s28jl0diw88s4sak7s1gc398v8krlpb-container-test-ubuntu-22-04-empty-config.drv building '/nix/store/7s28jl0diw88s4sak7s1gc398v8krlpb-container-test-ubuntu-22-04-empty-config.drv' container-test-ubuntu-22-04-empty-config> Running type check container-test-ubuntu-22-04-empty-config> Success: no issues found in 1 source file container-test-ubuntu-22-04-empty-config> Linting test script container-test-ubuntu-22-04-empty-config> additionally exposed symbols: container-test-ubuntu-22-04-empty-config> ubuntu-22-04-empty-config, container-test-ubuntu-22-04-empty-config> start_all, subtest, machines, driver, Machine container-test-ubuntu-22-04-empty-config> Starting ubuntu-22-04-empty-config container-test-ubuntu-22-04-empty-config> [0.0s] Container process started container-test-ubuntu-22-04-empty-config> Waiting for ubuntu-22-04-empty-config to boot... container-test-ubuntu-22-04-empty-config> Getting container PID for ubuntu-22-04-empty-config... container-test-ubuntu-22-04-empty-config> Looking for child process of nspawn PID 52 container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Note: in a future version of systemd-nspawn the default set of permitted socket address families will be restricted to AF_INET, AF_INET6 and AF_UNIX. Use --restrict-address-families= to configure the set of permitted socket address families, or set RestrictAddressFamilies= in a .nspawn file. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] ░ Spawning container ubuntu-22-04-empty-config on /build/tmpamnmwh43/ubuntu-22-04-empty-config. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Using default interface naming scheme 'v261'. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Network interface name 'vb-ubuntu-22-04-empty-config' has been changed to 'vb-ubuntu-2OTbo' to fit length constraints. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] systemd 249.11-0ubuntu3.17 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY -P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified) container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Detected virtualization systemd-nspawn. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Detected architecture x86-64. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Welcome to Ubuntu 22.04.5 LTS! container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Hostname set to . container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Initializing machine ID from container UUID. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Configuration file /run/systemd/system/netplan-ovs-cleanup.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Queued start job for default target Graphical Interface. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Created slice Slice /system/modprobe. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Created slice User and Session Slice. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started Forward Password Requests to Wall Directory Watch. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Reached target Slice Units. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Reached target Swaps. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Reached target Local Verity Protected Volumes. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Listening on Device-mapper event daemon FIFOs. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Listening on LVM2 poll daemon socket. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Listening on Syslog Socket. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Listening on initctl Compatibility Named Pipe. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Listening on Journal Socket (/dev/log). container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Listening on Journal Socket. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Listening on Network Service Netlink Socket. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting Journal Service... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting Set the console keyboard layout... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting Apply Kernel Variables... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting Create System Users... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Finished Apply Kernel Variables. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Finished Create System Users. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting Create Static Device Nodes in /dev... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started Journal Service. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting Flush Journal to Persistent Storage... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Finished Create Static Device Nodes in /dev. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Finished Set the console keyboard layout. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Reached target Preparation for Local File Systems. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Reached target Local File Systems. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting Set console font and keymap... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting Create final runtime dir for shutdown pivot root... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting Tell Plymouth To Write Out Runtime Data... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started Dispatch Password Requests to Console Directory Watch. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Reached target Local Encrypted Volumes. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting Uncomplicated firewall... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Finished Create final runtime dir for shutdown pivot root. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Finished Flush Journal to Persistent Storage. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting Create Volatile Files and Directories... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Finished Uncomplicated firewall. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Reached target Preparation for Network. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting Network Configuration... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Finished Tell Plymouth To Write Out Runtime Data. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Finished Create Volatile Files and Directories. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Reached target System Time Set. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting Record System Boot/Shutdown in UTMP... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Finished Record System Boot/Shutdown in UTMP. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Reached target System Initialization. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started Daily apt download activities. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started Daily apt upgrade and clean activities. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started Daily dpkg database backup timer. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started Periodic ext4 Online Metadata Check for All Filesystems. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started Daily rotation of log files. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started Daily man-db regeneration. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started Message of the Day. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started Daily Cleanup of Temporary Directories. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Reached target Path Units. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Listening on Unix socket for apport crash forwarding. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Listening on D-Bus System Message Bus Socket. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Listening on Open-iSCSI iscsid Socket. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Listening on UUID daemon activation socket. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Reached target Socket Units. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Reached target Basic System. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started D-Bus System Message Bus. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started Save initial kernel messages after boot. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting Dispatcher daemon for systemd-networkd... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting System Logging Service... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting User Login Management... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started System Logging Service. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started Network Configuration. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Reached target Network. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Reached target Network is Online. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started Download data for packages …at failed at package install time. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started Check to see whether there …a new version of Ubuntu available. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Reached target Timer Units. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Reached target Preparation for Remote File Systems. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Reached target Remote File Systems. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting LSB: automatic crash report generation... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Finished Availability of block devices. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started Regular background program processing daemon. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting OpenBSD Secure Shell server... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting Permit User Sessions... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Finished Set console font and keymap. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Finished Permit User Sessions. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting Hold until boot process finishes up... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting Terminate Plymouth Boot Screen... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Finished Hold until boot process finishes up. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started Console Getty. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Created slice Slice /system/getty. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Reached target Login Prompts. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started LSB: automatic crash report generation. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [FAILED] Failed to start OpenBSD Secure Shell server. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] See 'systemctl status ssh.service' for details. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Finished Terminate Plymouth Boot Screen. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started Dispatcher daemon for systemd-networkd. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started User Login Management. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Started Unattended Upgrades Shutdown. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Reached target Multi-User System. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Reached target Graphical Interface. container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Starting Record Runlevel Change in UTMP... container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] [ OK ] Finished Record Runlevel Change in UTMP. container-test-ubuntu-22-04-empty-config> [1.0s] Found container PID: 55 container-test-ubuntu-22-04-empty-config> Container ubuntu-22-04-empty-config has PID 55 container-test-ubuntu-22-04-empty-config> [0.0s] Container ubuntu-22-04-empty-config status: running container-test-ubuntu-22-04-empty-config> [0.0s] Container ubuntu-22-04-empty-config boot complete: running container-test-ubuntu-22-04-empty-config> [1.0s] Boot complete container-test-ubuntu-22-04-empty-config> ubuntu-22-04-empty-config: Installing Nix via nix-installer container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] Ubuntu 22.04.5 LTS ubuntu console container-test-ubuntu-22-04-empty-config> [ubuntu-22-04-empty-config] container-test-ubuntu-22-04-empty-config> ubuntu-22-04-empty-config: waiting for unit 'nix-daemon.socket' container-test-ubuntu-22-04-empty-config> (finished: waiting for unit 'nix-daemon.socket', in 0.01 seconds) container-test-ubuntu-22-04-empty-config> (finished: Installing Nix via nix-installer, in 2.96 seconds) container-test-ubuntu-22-04-empty-config> [3.0s] Nix installation complete container-test-ubuntu-22-04-empty-config> ubuntu-22-04-empty-config: Copying profile /nix/store/mf658bk4i8an8w6ag51d96dg0ix8s30b-system-manager to container container-test-ubuntu-22-04-empty-config> Copying 144 store paths... container-test-ubuntu-22-04-empty-config> (finished: Copying profile /nix/store/mf658bk4i8an8w6ag51d96dg0ix8s30b-system-manager to container, in 2.30 seconds) container-test-ubuntu-22-04-empty-config> [2.3s] Profile copy complete container-test-ubuntu-22-04-empty-config> [6.3s] All containers ready container-test-ubuntu-22-04-empty-config> To attach to container ubuntu-22-04-empty-config run on the same machine that runs the test: container-test-ubuntu-22-04-empty-config> sudo nsenter --target 55 --mount --uts --ipc --net --pid --cgroup -- /usr/bin/env PATH=/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/local/bin /bin/bash container-test-ubuntu-22-04-empty-config> ubuntu-22-04-empty-config: waiting for unit 'multi-user.target' container-test-ubuntu-22-04-empty-config> (finished: waiting for unit 'multi-user.target', in 0.01 seconds) container-test-ubuntu-22-04-empty-config> subtest: etcFiles.json contains only system-manager infrastructure container-test-ubuntu-22-04-empty-config> ubuntu-22-04-empty-config: must succeed: cat /nix/store/mf658bk4i8an8w6ag51d96dg0ix8s30b-system-manager/etcFiles/etcFiles.json container-test-ubuntu-22-04-empty-config> (finished: must succeed: cat /nix/store/mf658bk4i8an8w6ag51d96dg0ix8s30b-system-manager/etcFiles/etcFiles.json, in 0.00 seconds) container-test-ubuntu-22-04-empty-config> (finished: subtest: etcFiles.json contains only system-manager infrastructure, in 0.00 seconds) container-test-ubuntu-22-04-empty-config> subtest: services.json contains only system-manager infrastructure container-test-ubuntu-22-04-empty-config> ubuntu-22-04-empty-config: must succeed: cat /nix/store/mf658bk4i8an8w6ag51d96dg0ix8s30b-system-manager/services/services.json container-test-ubuntu-22-04-empty-config> (finished: must succeed: cat /nix/store/mf658bk4i8an8w6ag51d96dg0ix8s30b-system-manager/services/services.json, in 0.00 seconds) container-test-ubuntu-22-04-empty-config> Test "services.json contains only system-manager infrastructure" failed with error: "Empty config should not produce services beyond infrastructure: {'userborn-import-legacy.service'}" error: Cannot build '/nix/store/7s28jl0diw88s4sak7s1gc398v8krlpb-container-test-ubuntu-22-04-empty-config.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/9z2zy7ksakvbp8izywprx47qpzv7jyxn-container-test-ubuntu-22-04-empty-config Last 25 log lines: > [ubuntu-22-04-empty-config] > [ubuntu-22-04-empty-config] > [ubuntu-22-04-empty-config] Ubuntu 22.04.5 LTS ubuntu console > [ubuntu-22-04-empty-config] > ubuntu-22-04-empty-config: waiting for unit 'nix-daemon.socket' > (finished: waiting for unit 'nix-daemon.socket', in 0.01 seconds) > (finished: Installing Nix via nix-installer, in 2.96 seconds) > [3.0s] Nix installation complete > ubuntu-22-04-empty-config: Copying profile /nix/store/mf658bk4i8an8w6ag51d96dg0ix8s30b-system-manager to container > Copying 144 store paths... > (finished: Copying profile /nix/store/mf658bk4i8an8w6ag51d96dg0ix8s30b-system-manager to container, in 2.30 seconds) > [2.3s] Profile copy complete > [6.3s] All containers ready > To attach to container ubuntu-22-04-empty-config run on the same machine that runs the test: > sudo nsenter --target 55 --mount --uts --ipc --net --pid --cgroup -- /usr/bin/env PATH=/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/local/bin /bin/bash > ubuntu-22-04-empty-config: waiting for unit 'multi-user.target' > (finished: waiting for unit 'multi-user.target', in 0.01 seconds) > subtest: etcFiles.json contains only system-manager infrastructure > ubuntu-22-04-empty-config: must succeed: cat /nix/store/mf658bk4i8an8w6ag51d96dg0ix8s30b-system-manager/etcFiles/etcFiles.json > (finished: must succeed: cat /nix/store/mf658bk4i8an8w6ag51d96dg0ix8s30b-system-manager/etcFiles/etcFiles.json, in 0.00 seconds) > (finished: subtest: etcFiles.json contains only system-manager infrastructure, in 0.00 seconds) > subtest: services.json contains only system-manager infrastructure > ubuntu-22-04-empty-config: must succeed: cat /nix/store/mf658bk4i8an8w6ag51d96dg0ix8s30b-system-manager/services/services.json > (finished: must succeed: cat /nix/store/mf658bk4i8an8w6ag51d96dg0ix8s30b-system-manager/services/services.json, in 0.00 seconds) > Test "services.json contains only system-manager infrastructure" failed with error: "Empty config should not produce services beyond infrastructure: {'userborn-import-legacy.service'}" For full logs, run: nix log /nix/store/7s28jl0diw88s4sak7s1gc398v8krlpb-container-test-ubuntu-22-04-empty-config.drv