Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorHugo Ankarloo <hugo@ilait.se>2021-09-20 19:30:07 +0200
committerHugo Ankarloo <hugo@ilait.se>2021-09-20 19:30:07 +0200
commitd2d80113b3c6a337097b407674f67b84cc14c82a (patch)
treebdfddac414d477b95bd2b2075e150b5c091bbb64 /archinstall/lib
parentea41a6c2685a1f1d47df708862e27b5b5768c41d (diff)
Fix Bug: Timezone is ignored, always same as host
Bug affects normal interactive usage (example/guided.py). The timezone configured in the installer is not the timezone that ends up in the new installed system. Instead, the timezone used in the host system (from where the installer is run) is the one that finally ends up being used. Reason: systemd-nspawn by default copies the host timezone into the target. And systemd-nspawn is run when keyboard-layout is changed (which is done after changing the timezone). Solution: Add option `--timezone=off` to systemd-nspawn, which hinders affecting the timezone in the target.
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/systemd.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/archinstall/lib/systemd.py b/archinstall/lib/systemd.py
index 383f1f17..d297c507 100644
--- a/archinstall/lib/systemd.py
+++ b/archinstall/lib/systemd.py
@@ -64,6 +64,7 @@ class Boot:
self.session = SysCommandWorker([
'/usr/bin/systemd-nspawn',
'-D', self.instance.target,
+ '--timezone=off',
'-b',
'--machine', self.container_name
])