summaryrefslogtreecommitdiff
path: root/commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands.go')
-rw-r--r--commands.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/commands.go b/commands.go
index 52704c5..7bf45cc 100644
--- a/commands.go
+++ b/commands.go
@@ -223,7 +223,9 @@ func (cmd Command) Run(label string, cmdline ...string) error {
options = append(options, cmdline...)
case CHROOT_METHOD_NSPAWN:
// We use own resolv.conf handling
- options = append(options, "systemd-nspawn", "-q", "--resolv-conf=off", "-D", cmd.Chroot)
+ options = append(options, "systemd-nspawn", "-q")
+ options = append(options, "--resolv-conf=off")
+ options = append(options, "--timezone=off")
for _, e := range cmd.extraEnv {
options = append(options, "--setenv", e)
@@ -232,6 +234,7 @@ func (cmd Command) Run(label string, cmdline ...string) error {
options = append(options, "--bind", b)
}
+ options = append(options, "-D", cmd.Chroot)
options = append(options, cmdline...)
}