summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormtt2hi <thomas.mittelstaedt@de.bosch.com>2021-04-06 09:41:40 +0000
committerAndrej Shadura <andrewsh@debian.org>2021-04-06 18:55:53 +0200
commit3d0b9d6b5f679016f90a77f39d463385560a9a07 (patch)
treed2e0806c6b003ff75251481b5d67b174811f590f
parent5bcbc7c5460434fe6d2303ce93a7945676d91db5 (diff)
[PATCH] systemd-nspawn shall be called with option "--register=no" to prevent error after debootstraparchive/debian/1.0.0+git20201203.e939090-2
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.go1
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)