Skip to content

SELinux: Unit system-manager.target not found #115

Open
@soupglasses

Description

Describe the bug

Running on openSUSE Tumbleweed, running a minimal configuration, it errors on system-manager.target not found. Unsure if this is due to the minimal configuraiton, or openSUSE. Notably the target gets generated empty?

$ cat /etc/systemd/system/system-manager.target
[Unit]

$ 
systemConfigs.default = system-manager.lib.makeSystemConfig {
  modules = [
    ({...}: {
      config = {
        nixpkgs.hostPlatform = "x86_64-linux";
        system-manager.allowAnyDistro = true;
      };
    })
  ];
};

Full output:

$ sudo system-manager switch --flake .  
[2024-09-25T10:46:26Z INFO  system_manager::register] Trying flake URI: .#systemConfigs.yoga...
warning: Git tree '/home/sofie/.coturnix' is dirty
[2024-09-25T10:46:26Z INFO  system_manager::register] Attribute .#systemConfigs.yoga not found in flake.
[2024-09-25T10:46:26Z INFO  system_manager::register] Trying flake URI: .#systemConfigs.default...
warning: Git tree '/home/sofie/.coturnix' is dirty
[2024-09-25T10:46:26Z INFO  system_manager::register] Success, using .#systemConfigs.default
[2024-09-25T10:46:26Z INFO  system_manager::register] Building new system-manager generation...
[2024-09-25T10:46:26Z INFO  system_manager::register] Running nix build...
warning: Git tree '/home/sofie/.coturnix' is dirty
[2024-09-25T10:46:28Z INFO  system_manager::register] Built system-manager profile /nix/store/snmir05zz4khpb5qsbqy8vap0vi7d8nw-system-manager
[2024-09-25T10:46:28Z INFO  system_manager::register] Creating new generation from /nix/store/snmir05zz4khpb5qsbqy8vap0vi7d8nw-system-manager
[2024-09-25T10:46:28Z INFO  system_manager::register] Registering GC root...
[2024-09-25T10:46:28Z INFO  system_manager] Creating symlink: /nix/var/nix/gcroots/system-manager-current -> /nix/store/snmir05zz4khpb5qsbqy8vap0vi7d8nw-system-manager
[2024-09-25T10:46:28Z INFO  system_manager::register] Done
[2024-09-25T10:46:28Z INFO  system_manager::activate] Activating system-manager profile: /nix/store/snmir05zz4khpb5qsbqy8vap0vi7d8nw-system-manager
[2024-09-25T10:46:28Z INFO  system_manager::activate] Running pre-activation assertions...
All pre-activation assertions succeeded.
[2024-09-25T10:46:28Z INFO  system_manager::activate] Reading state info from /var/lib/system-manager/state/system-manager-state.json
[2024-09-25T10:46:28Z INFO  system_manager::activate] Activating etc files...
[2024-09-25T10:46:28Z INFO  system_manager::activate::etc_files] Reading etc file definitions...
[2024-09-25T10:46:28Z INFO  system_manager::activate::etc_files] Creating /etc entries in /etc
[2024-09-25T10:46:28Z INFO  system_manager] Creating symlink: /etc/.system-manager-static -> /nix/store/m6jy60pq7gvlbd5gdglcj12ijjig6kqp-etc-static-env
[2024-09-25T10:46:28Z INFO  system_manager::activate::etc_files] Done
[2024-09-25T10:46:28Z INFO  system_manager::activate] Activating tmp files...
[2024-09-25T10:46:28Z INFO  system_manager::activate] Activating systemd services...
[2024-09-25T10:46:28Z INFO  system_manager::activate::services] Reading new service definitions...
[2024-09-25T10:46:28Z INFO  system_manager::activate::services] Reloading the systemd daemon...
[2024-09-25T10:46:29Z ERROR system_manager::activate::services] Service system-manager.target: error starting, please consult the logs
[2024-09-25T10:46:29Z ERROR system_manager::activate::services] Unit system-manager.target not found.
[2024-09-25T10:46:29Z INFO  system_manager::activate::services] Done
[2024-09-25T10:46:29Z INFO  system_manager::activate] Writing state info into file: /var/lib/system-manager/state/system-manager-state.json

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions