diff options
author | mtt2hi <thomas.mittelstaedt@de.bosch.com> | 2021-04-06 09:41:40 +0000 |
---|---|---|
committer | Andrej Shadura <andrewsh@debian.org> | 2021-04-06 23:35:32 +0200 |
commit | bb2025e635d3c287a470bfb36c10e60207a54acb (patch) | |
tree | e741c408b39e3c0b947df4a91800c8f9c50fef52 | |
parent | 8facbf7dc5b1ed1f56eef1b2a1869ddc039c4b7e (diff) |
[PATCH] systemd-nspawn shall be called with option "--register=no" to prevent error after debootstrap
After debootstrap the call of "debos" fails with message "Failed to register machine: Unit machine-root.scope already exists".
With the option "--register=no" this works fine. This change is derived from https://gitlab.collabora.com/smcv/flatdeb/-/merge_requests/6
Signed-off-by: mtt2hi <thomas.mittelstaedt@de.bosch.com>
Gbp-Pq: Name 0001-systemd-nspawn-shall-be-called-with-option-register-.patch
-rw-r--r-- | commands.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/commands.go b/commands.go index 7bf45cc..42ba982 100644 --- a/commands.go +++ b/commands.go @@ -226,6 +226,7 @@ func (cmd Command) Run(label string, cmdline ...string) error { options = append(options, "systemd-nspawn", "-q") options = append(options, "--resolv-conf=off") options = append(options, "--timezone=off") + options = append(options, "--register=no") for _, e := range cmd.extraEnv { options = append(options, "--setenv", e) |