{"action":"closed","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/8971","repository_url":"https://api.github.com/repos/systemd/systemd","labels_url":"https://api.github.com/repos/systemd/systemd/issues/8971/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/8971/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/8971/events","html_url":"https://github.com/systemd/systemd/issues/8971","id":322350664,"node_id":"MDU6SXNzdWUzMjIzNTA2NjQ=","number":8971,"title":"systemd-nspawn can not start nixos-on-nixos","user":{"login":"Andrei-Pozolotin","id":1622151,"node_id":"MDQ6VXNlcjE2MjIxNTE=","avatar_url":"https://avatars0.githubusercontent.com/u/1622151?v=4","gravatar_id":"","url":"https://api.github.com/users/Andrei-Pozolotin","html_url":"https://github.com/Andrei-Pozolotin","followers_url":"https://api.github.com/users/Andrei-Pozolotin/followers","following_url":"https://api.github.com/users/Andrei-Pozolotin/following{/other_user}","gists_url":"https://api.github.com/users/Andrei-Pozolotin/gists{/gist_id}","starred_url":"https://api.github.com/users/Andrei-Pozolotin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andrei-Pozolotin/subscriptions","organizations_url":"https://api.github.com/users/Andrei-Pozolotin/orgs","repos_url":"https://api.github.com/users/Andrei-Pozolotin/repos","events_url":"https://api.github.com/users/Andrei-Pozolotin/events{/privacy}","received_events_url":"https://api.github.com/users/Andrei-Pozolotin/received_events","type":"User","site_admin":false},"labels":[{"id":239790930,"node_id":"MDU6TGFiZWwyMzk3OTA5MzA=","url":"https://api.github.com/repos/systemd/systemd/labels/needs-reporter-feedback%20%E2%9D%93","name":"needs-reporter-feedback ❓","color":"eb6420","default":false},{"id":219550103,"node_id":"MDU6TGFiZWwyMTk1NTAxMDM=","url":"https://api.github.com/repos/systemd/systemd/labels/nspawn","name":"nspawn","color":"bfdadc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-05-11T16:03:28Z","updated_at":"2018-11-16T23:09:50Z","closed_at":"2018-11-16T23:09:50Z","author_association":"NONE","body":"happens on both v237 and v238. \r\nlooks like related to symlinks, again\r\noriginal report: https://github.com/NixOS/nixpkgs/issues/40367\r\n\r\n## Issue description\r\n\r\nattempt to start nixos-on-nixos \r\nvia [systemd-nspawn](https://www.freedesktop.org/software/systemd/man/systemd-nspawn.html)\r\nfails with error in [nspawn.c](https://github.com/systemd/systemd/blob/master/src/nspawn/nspawn.c#L3924):\r\n```\r\nDirectory /nix/store/xc7npmnz5ncvw795p9z1xsy4bk3m7spl-nixos-system-nixos-18.03.132304.45cd6090d9a doesn't look like an OS root directory (os-release file is missing). Refusing.\r\n```\r\n\r\ndespite `os-release` apparently present, although as symlink:\r\n```\r\nls -las /root/tester/etc/os-release \r\n0 lrwxrwxrwx 1 root root 58 Jan  1  1970 /root/tester/etc/os-release -> /nix/store/f5nj4avyxmrc4cf36aab17a474vdb36r-etc-os-release\r\n```\r\n\r\n### Steps to reproduce\r\n\r\n1. given basic `/root/config.nix`:\r\n```\r\n{ config, pkgs, ... }:\r\n{\r\n  imports =\r\n    [ # Include the results of the hardware scan.\r\n    #      ./hardware-configuration.nix\r\n    ];\r\n  boot.loader.systemd-boot.enable = true;\r\n  boot.loader.efi.canTouchEfiVariables = true;\r\n  fileSystems.\"/\".device = \"/dev/invalid\" ;\r\n  system.stateVersion = \"18.09\";\r\n}\r\n```\r\n\r\n2. produce system image:\r\n```\r\nnix build -f '<nixpkgs/nixos>' system -I nixos-config=/root/config.nix -o /root/tester\r\n```\r\n\r\n3. now try to instantiate:\r\n```\r\nsystemd-nspawn --boot --directory=/root/tester\r\n```\r\n\r\n## Technical details\r\n\r\nnixos:\r\n```\r\n - system: `\"x86_64-linux\"`\r\n - host os: `Linux 4.14.32, NixOS, 18.03.131792.becbe4dbe16 (Impala)`\r\n - multi-user?: `yes`\r\n - sandbox: `no`\r\n - version: `nix-env (Nix) 2.0`\r\n - channels(root): `\"nixos-18.03\"`\r\n - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs`\r\n```\r\nsystemd:\r\n```\r\nsystemd 237\r\n+PAM +AUDIT -SELINUX +IMA +APPARMOR +SMACK -SYSVINIT +UTMP -LIBCRYPTSETUP +GCRYPT -GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD +IDN2 -IDN -PCRE2 default-hierarchy=hybrid\r\n```"}}
{"actor":{"display_login":"poettering"}}