Skip to content

Ship Systemd with systemd-importd so that machinectl is not broken #70348

@wucke13

Description

@wucke13

machinectl's import-* commands do fail, due to missing importd

$ machinectl import-tar ubuntu-bionic.tar.xz
Failed to transfer image: The name org.freedesktop.import1 was not provided by any .service files

This renders machinectl mostly useless.

To Reproduce
Steps to reproduce the behavior:

  1. Use machinectl to spawn an nspawn container: machinectl pull-tar --verify=checksum https://nspawn.org/storage/ubuntu/bionic/tar/image.tar.xz

Expected behavior
machinectl starts pulling the image.

Additional context
I tried adding "-Dimportd=true" to systemds mesonFlags, though that introduces two new dependencies:

  • libxkcommon
  • dbus

As dbus depends on systemd itself, adding dbus.dev to buildInput is not working.
More can be seen here: https://github.com/wucke13/nixpkgs/blob/systemd-importd/pkgs/os-specific/linux/systemd/default.nix

Metadata

  • system: "x86_64-linux"
  • host os: Linux 5.3.2, NixOS, 19.09beta596.77b5a1965fc (Loris)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3
  • channels(root): "nixos-19.09beta596.77b5a1965fc"
  • channels(wucke13): "nixos-unstable-19.09pre192418.e19054ab3cd"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions