summaryrefslogtreecommitdiffstats
path: root/core/modules
diff options
context:
space:
mode:
authorSimon Rettberg2023-01-23 10:58:23 +0100
committerSimon Rettberg2023-01-23 10:58:23 +0100
commit704a06c5b3a5eb5bb2c7424ab80fc8dfe067fca1 (patch)
tree19151ada0e85e47210a57183a590aa6472605562 /core/modules
parent[inc/keyvalueutil] Fixup a bit (diff)
downloadmltk-704a06c5b3a5eb5bb2c7424ab80fc8dfe067fca1.tar.gz
mltk-704a06c5b3a5eb5bb2c7424ab80fc8dfe067fca1.tar.xz
mltk-704a06c5b3a5eb5bb2c7424ab80fc8dfe067fca1.zip
[stage4-tweaks/systemd-default-path] Force TZ to localtime, fix PATH
PATH dosn't need /bin and /sbin anymore now that it's symlinked to /usr
Diffstat (limited to 'core/modules')
-rw-r--r--core/modules/bwlp-stage4-tweaks/module.build7
-rw-r--r--core/modules/systemd-default-path/data/etc/systemd/system.conf.d/10-openslx-path.conf2
2 files changed, 8 insertions, 1 deletions
diff --git a/core/modules/bwlp-stage4-tweaks/module.build b/core/modules/bwlp-stage4-tweaks/module.build
index e69de29b..dfa1bbac 100644
--- a/core/modules/bwlp-stage4-tweaks/module.build
+++ b/core/modules/bwlp-stage4-tweaks/module.build
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+post_copy() {
+ # This speeds up glibc stuff a bit, see
+ # https://blog.packagecloud.io/set-environment-variable-save-thousands-of-system-calls/
+ add_env TZ ":/etc/localtime"
+}
diff --git a/core/modules/systemd-default-path/data/etc/systemd/system.conf.d/10-openslx-path.conf b/core/modules/systemd-default-path/data/etc/systemd/system.conf.d/10-openslx-path.conf
index 238b834c..6e67fdf1 100644
--- a/core/modules/systemd-default-path/data/etc/systemd/system.conf.d/10-openslx-path.conf
+++ b/core/modules/systemd-default-path/data/etc/systemd/system.conf.d/10-openslx-path.conf
@@ -1,2 +1,2 @@
[Manager]
-DefaultEnvironment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/openslx/sbin:/opt/openslx/bin"
+DefaultEnvironment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/openslx/sbin:/opt/openslx/bin" "TZ=:/etc/localtime"