Running type check Success: no issues found in 1 source file Linting test script additionally exposed symbols: ubuntu-22-04-existing-files, start_all, subtest, machines, driver, Machine Starting ubuntu-22-04-existing-files [0.0s] Container process started Waiting for ubuntu-22-04-existing-files to boot... Getting container PID for ubuntu-22-04-existing-files... Looking for child process of nspawn PID 52 [ubuntu-22-04-existing-files] 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. [ubuntu-22-04-existing-files] ░ Spawning container ubuntu-22-04-existing-files on /build/tmpg0aj0dol/ubuntu-22-04-existing-files. [ubuntu-22-04-existing-files] Using default interface naming scheme 'v261'. [ubuntu-22-04-existing-files] Network interface name 'vb-ubuntu-22-04-existing-files' has been changed to 'vb-ubuntu-2biiy' to fit length constraints. [ubuntu-22-04-existing-files] 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) [ubuntu-22-04-existing-files] Detected virtualization systemd-nspawn. [ubuntu-22-04-existing-files] Detected architecture x86-64. [ubuntu-22-04-existing-files] [ubuntu-22-04-existing-files] Welcome to Ubuntu 22.04.5 LTS! [ubuntu-22-04-existing-files] [ubuntu-22-04-existing-files] Hostname set to . [ubuntu-22-04-existing-files] Initializing machine ID from container UUID. [ubuntu-22-04-existing-files] 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. [ubuntu-22-04-existing-files] Queued start job for default target Graphical Interface. [ubuntu-22-04-existing-files] [ OK ] Created slice Slice /system/modprobe. [ubuntu-22-04-existing-files] [ OK ] Created slice User and Session Slice. [ubuntu-22-04-existing-files] [ OK ] Started Forward Password Requests to Wall Directory Watch. [ubuntu-22-04-existing-files] [ OK ] Reached target Slice Units. [ubuntu-22-04-existing-files] [ OK ] Reached target Swaps. [ubuntu-22-04-existing-files] [ OK ] Reached target Local Verity Protected Volumes. [ubuntu-22-04-existing-files] [ OK ] Listening on Device-mapper event daemon FIFOs. [ubuntu-22-04-existing-files] [ OK ] Listening on LVM2 poll daemon socket. [ubuntu-22-04-existing-files] [ OK ] Listening on Syslog Socket. [ubuntu-22-04-existing-files] [ OK ] Listening on initctl Compatibility Named Pipe. [ubuntu-22-04-existing-files] [ OK ] Listening on Journal Socket (/dev/log). [ubuntu-22-04-existing-files] [ OK ] Listening on Journal Socket. [ubuntu-22-04-existing-files] [ OK ] Listening on Network Service Netlink Socket. [ubuntu-22-04-existing-files] Starting Journal Service... [ubuntu-22-04-existing-files] Starting Set the console keyboard layout... [ubuntu-22-04-existing-files] Starting Apply Kernel Variables... [ubuntu-22-04-existing-files] Starting Create System Users... [ubuntu-22-04-existing-files] [ OK ] Finished Apply Kernel Variables. [ubuntu-22-04-existing-files] [ OK ] Finished Create System Users. [ubuntu-22-04-existing-files] Starting Create Static Device Nodes in /dev... [ubuntu-22-04-existing-files] [ OK ] Started Journal Service. [ubuntu-22-04-existing-files] Starting Flush Journal to Persistent Storage... [ubuntu-22-04-existing-files] [ OK ] Finished Create Static Device Nodes in /dev. [ubuntu-22-04-existing-files] [ OK ] Finished Set the console keyboard layout. [ubuntu-22-04-existing-files] [ OK ] Reached target Preparation for Local File Systems. [ubuntu-22-04-existing-files] [ OK ] Reached target Local File Systems. [ubuntu-22-04-existing-files] Starting Set console font and keymap... [ubuntu-22-04-existing-files] Starting Create final runtime dir for shutdown pivot root... [ubuntu-22-04-existing-files] Starting Tell Plymouth To Write Out Runtime Data... [ubuntu-22-04-existing-files] [ OK ] Started Dispatch Password Requests to Console Directory Watch. [ubuntu-22-04-existing-files] [ OK ] Reached target Local Encrypted Volumes. [ubuntu-22-04-existing-files] Starting Uncomplicated firewall... [ubuntu-22-04-existing-files] [ OK ] Finished Create final runtime dir for shutdown pivot root. [ubuntu-22-04-existing-files] [ OK ] Finished Uncomplicated firewall. [ubuntu-22-04-existing-files] [ OK ] Reached target Preparation for Network. [ubuntu-22-04-existing-files] Starting Network Configuration... [ubuntu-22-04-existing-files] [ OK ] Finished Flush Journal to Persistent Storage. [ubuntu-22-04-existing-files] Starting Create Volatile Files and Directories... [ubuntu-22-04-existing-files] [ OK ] Finished Tell Plymouth To Write Out Runtime Data. [ubuntu-22-04-existing-files] [ OK ] Finished Create Volatile Files and Directories. [ubuntu-22-04-existing-files] [ OK ] Reached target System Time Set. [ubuntu-22-04-existing-files] Starting Record System Boot/Shutdown in UTMP... [ubuntu-22-04-existing-files] [ OK ] Finished Record System Boot/Shutdown in UTMP. [ubuntu-22-04-existing-files] [ OK ] Reached target System Initialization. [ubuntu-22-04-existing-files] [ OK ] Started Daily apt download activities. [ubuntu-22-04-existing-files] [ OK ] Started Daily apt upgrade and clean activities. [ubuntu-22-04-existing-files] [ OK ] Started Daily dpkg database backup timer. [ubuntu-22-04-existing-files] [ OK ] Started Periodic ext4 Online Metadata Check for All Filesystems. [ubuntu-22-04-existing-files] [ OK ] Started Daily rotation of log files. [ubuntu-22-04-existing-files] [ OK ] Started Daily man-db regeneration. [ubuntu-22-04-existing-files] [ OK ] Started Message of the Day. [ubuntu-22-04-existing-files] [ OK ] Started Daily Cleanup of Temporary Directories. [ubuntu-22-04-existing-files] [ OK ] Reached target Path Units. [ubuntu-22-04-existing-files] [ OK ] Listening on Unix socket for apport crash forwarding. [ubuntu-22-04-existing-files] [ OK ] Listening on D-Bus System Message Bus Socket. [ubuntu-22-04-existing-files] [ OK ] Listening on Open-iSCSI iscsid Socket. [ubuntu-22-04-existing-files] [ OK ] Listening on UUID daemon activation socket. [ubuntu-22-04-existing-files] [ OK ] Reached target Socket Units. [ubuntu-22-04-existing-files] [ OK ] Reached target Basic System. [ubuntu-22-04-existing-files] [ OK ] Started D-Bus System Message Bus. [ubuntu-22-04-existing-files] [ OK ] Started Save initial kernel messages after boot. [ubuntu-22-04-existing-files] Starting Dispatcher daemon for systemd-networkd... [ubuntu-22-04-existing-files] Starting System Logging Service... [ubuntu-22-04-existing-files] Starting User Login Management... [ubuntu-22-04-existing-files] [ OK ] Started System Logging Service. [ubuntu-22-04-existing-files] [ OK ] Started Network Configuration. [ubuntu-22-04-existing-files] [ OK ] Reached target Network. [ubuntu-22-04-existing-files] [ OK ] Reached target Network is Online. [ubuntu-22-04-existing-files] [ OK ] Started Download data for packages …at failed at package install time. [ubuntu-22-04-existing-files] [ OK ] Started Check to see whether there …a new version of Ubuntu available. [ubuntu-22-04-existing-files] [ OK ] Reached target Timer Units. [ubuntu-22-04-existing-files] [ OK ] Reached target Preparation for Remote File Systems. [ubuntu-22-04-existing-files] [ OK ] Reached target Remote File Systems. [ubuntu-22-04-existing-files] Starting LSB: automatic crash report generation... [ubuntu-22-04-existing-files] [ OK ] Finished Availability of block devices. [ubuntu-22-04-existing-files] [ OK ] Started Regular background program processing daemon. [ubuntu-22-04-existing-files] Starting OpenBSD Secure Shell server... [ubuntu-22-04-existing-files] Starting Permit User Sessions... [ubuntu-22-04-existing-files] [ OK ] Finished Permit User Sessions. [ubuntu-22-04-existing-files] Starting Hold until boot process finishes up... [ubuntu-22-04-existing-files] Starting Terminate Plymouth Boot Screen... [ubuntu-22-04-existing-files] [ OK ] Finished Hold until boot process finishes up. [ubuntu-22-04-existing-files] [ OK ] Started Console Getty. [ubuntu-22-04-existing-files] [ OK ] Created slice Slice /system/getty. [ubuntu-22-04-existing-files] [ OK ] Reached target Login Prompts. [ubuntu-22-04-existing-files] [FAILED] Failed to start OpenBSD Secure Shell server. [ubuntu-22-04-existing-files] See 'systemctl status ssh.service' for details. [ubuntu-22-04-existing-files] [ OK ] Started LSB: automatic crash report generation. [ubuntu-22-04-existing-files] [ OK ] Finished Terminate Plymouth Boot Screen. [ubuntu-22-04-existing-files] [ OK ] Started Dispatcher daemon for systemd-networkd. [ubuntu-22-04-existing-files] [ OK ] Finished Set console font and keymap. [ubuntu-22-04-existing-files] [ OK ] Started User Login Management. [ubuntu-22-04-existing-files] [ OK ] Started Unattended Upgrades Shutdown. [ubuntu-22-04-existing-files] [ OK ] Reached target Multi-User System. [ubuntu-22-04-existing-files] [ OK ] Reached target Graphical Interface. [ubuntu-22-04-existing-files] Starting Record Runlevel Change in UTMP... [ubuntu-22-04-existing-files] [ OK ] Finished Record Runlevel Change in UTMP. [1.0s] Found container PID: 55 Container ubuntu-22-04-existing-files has PID 55 [0.0s] Container ubuntu-22-04-existing-files status: running [0.0s] Container ubuntu-22-04-existing-files boot complete: running [1.0s] Boot complete ubuntu-22-04-existing-files: Installing Nix via nix-installer [ubuntu-22-04-existing-files] [ubuntu-22-04-existing-files] [ubuntu-22-04-existing-files] Ubuntu 22.04.5 LTS ubuntu console [ubuntu-22-04-existing-files] ubuntu-22-04-existing-files: 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.11 seconds) [2.1s] Nix installation complete ubuntu-22-04-existing-files: Copying profile /nix/store/kqzfmsq4ly43xam048sa11l8npxqhxip-system-manager to container Copying 150 store paths... (finished: Copying profile /nix/store/kqzfmsq4ly43xam048sa11l8npxqhxip-system-manager to container, in 1.17 seconds) [1.2s] Profile copy complete [4.3s] All containers ready To attach to container ubuntu-22-04-existing-files 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-existing-files: waiting for unit 'multi-user.target' (finished: waiting for unit 'multi-user.target', in 0.01 seconds) ubuntu-22-04-existing-files: must succeed: echo -n 'original copy content' > /etc/force-copy-test (finished: must succeed: echo -n 'original copy content' > /etc/force-copy-test, in 0.00 seconds) ubuntu-22-04-existing-files: must succeed: echo -n 'original symlink content' > /etc/force-symlink-test (finished: must succeed: echo -n 'original symlink content' > /etc/force-symlink-test, in 0.00 seconds) ubuntu-22-04-existing-files: must succeed: echo -n 'do not touch' > /etc/no-replace-test (finished: must succeed: echo -n 'do not touch' > /etc/no-replace-test, in 0.00 seconds) ubuntu-22-04-existing-files: must succeed: mkdir -p /etc/systemd/system/timers.target.wants (finished: must succeed: mkdir -p /etc/systemd/system/timers.target.wants, in 0.00 seconds) ubuntu-22-04-existing-files: must succeed: ln -sf /lib/systemd/system/fake-existing.timer /etc/systemd/system/timers.target.wants/existing.timer (finished: must succeed: ln -sf /lib/systemd/system/fake-existing.timer /etc/systemd/system/timers.target.wants/existing.timer, in 0.00 seconds) ubuntu-22-04-existing-files: must succeed: /nix/store/kqzfmsq4ly43xam048sa11l8npxqhxip-system-manager/bin/activate 2>&1 | tee /tmp/output.log (finished: must succeed: /nix/store/kqzfmsq4ly43xam048sa11l8npxqhxip-system-manager/bin/activate 2>&1 | tee /tmp/output.log, in 0.82 seconds) ubuntu-22-04-existing-files: must succeed: grep -F 'File /etc/no-replace-test already exists' /tmp/output.log (finished: must succeed: grep -F 'File /etc/no-replace-test already exists' /tmp/output.log, in 0.00 seconds) ubuntu-22-04-existing-files: must succeed: cat /etc/no-replace-test (finished: must succeed: cat /etc/no-replace-test, in 0.00 seconds) ubuntu-22-04-existing-files: must fail: test -e /etc/no-replace-test.system-manager-backup (finished: must fail: test -e /etc/no-replace-test.system-manager-backup, in 0.00 seconds) ubuntu-22-04-existing-files: must succeed: cat /etc/force-copy-test (finished: must succeed: cat /etc/force-copy-test, in 0.00 seconds) ubuntu-22-04-existing-files: must succeed: cat /etc/force-copy-test.system-manager-backup (finished: must succeed: cat /etc/force-copy-test.system-manager-backup, in 0.00 seconds) ubuntu-22-04-existing-files: must succeed: test -L /etc/force-symlink-test (finished: must succeed: test -L /etc/force-symlink-test, in 0.00 seconds) ubuntu-22-04-existing-files: must succeed: cat /etc/force-symlink-test (finished: must succeed: cat /etc/force-symlink-test, in 0.00 seconds) ubuntu-22-04-existing-files: must succeed: cat /etc/force-symlink-test.system-manager-backup (finished: must succeed: cat /etc/force-symlink-test.system-manager-backup, in 0.00 seconds) ubuntu-22-04-existing-files: must succeed: test -L /etc/systemd/system/system-manager.target.wants/existing.timer (finished: must succeed: test -L /etc/systemd/system/system-manager.target.wants/existing.timer, in 0.00 seconds) ubuntu-22-04-existing-files: must succeed: readlink /etc/systemd/system/timers.target.wants/existing.timer (finished: must succeed: readlink /etc/systemd/system/timers.target.wants/existing.timer, in 0.00 seconds) ubuntu-22-04-existing-files: must succeed: cat /etc/systemd/system/existing.timer (finished: must succeed: cat /etc/systemd/system/existing.timer, in 0.00 seconds) ubuntu-22-04-existing-files: must succeed: /nix/store/kqzfmsq4ly43xam048sa11l8npxqhxip-system-manager/bin/deactivate 2>&1 | tee /tmp/output.log (finished: must succeed: /nix/store/kqzfmsq4ly43xam048sa11l8npxqhxip-system-manager/bin/deactivate 2>&1 | tee /tmp/output.log, in 0.13 seconds) ubuntu-22-04-existing-files: must succeed: ! grep -F 'ERROR' /tmp/output.log (finished: must succeed: ! grep -F 'ERROR' /tmp/output.log, in 0.01 seconds) ubuntu-22-04-existing-files: must succeed: cat /etc/force-copy-test (finished: must succeed: cat /etc/force-copy-test, in 0.00 seconds) ubuntu-22-04-existing-files: must fail: test -e /etc/force-copy-test.system-manager-backup (finished: must fail: test -e /etc/force-copy-test.system-manager-backup, in 0.00 seconds) ubuntu-22-04-existing-files: must succeed: cat /etc/force-symlink-test (finished: must succeed: cat /etc/force-symlink-test, in 0.00 seconds) ubuntu-22-04-existing-files: must fail: test -e /etc/force-symlink-test.system-manager-backup (finished: must fail: test -e /etc/force-symlink-test.system-manager-backup, in 0.00 seconds) ubuntu-22-04-existing-files: must succeed: readlink /etc/systemd/system/timers.target.wants/existing.timer (finished: must succeed: readlink /etc/systemd/system/timers.target.wants/existing.timer, in 0.00 seconds) ubuntu-22-04-existing-files: must succeed: cat /etc/no-replace-test (finished: must succeed: cat /etc/no-replace-test, in 0.00 seconds)