From 704a06c5b3a5eb5bb2c7424ab80fc8dfe067fca1 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 23 Jan 2023 10:58:23 +0100 Subject: [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 --- core/modules/bwlp-stage4-tweaks/module.build | 7 +++++++ .../data/etc/systemd/system.conf.d/10-openslx-path.conf | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'core/modules') 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" -- cgit v1.2.3-55-g7522