summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/03-trixie-su-fix
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2024-12-23 06:54:48 +0100
committerHolger Paradies <retabell@gmx.de>2025-05-05 05:35:33 +0200
commita1b8bc8dc4b71e636835ef1f98a00bcb81b05d52 (patch)
tree25eb3c871b00514a2a16c0f01c06648f20ffa87c /config/chroot_local-hooks/03-trixie-su-fix
parent78e7506ea122574bfaee90bca15d299221bc4236 (diff)
downloadkanotix-a1b8bc8dc4b71e636835ef1f98a00bcb81b05d52.zip
kanotix-a1b8bc8dc4b71e636835ef1f98a00bcb81b05d52.tar.gz
Create towelfire fixes files
Diffstat (limited to 'config/chroot_local-hooks/03-trixie-su-fix')
-rwxr-xr-xconfig/chroot_local-hooks/03-trixie-su-fix9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/03-trixie-su-fix b/config/chroot_local-hooks/03-trixie-su-fix
new file mode 100755
index 0000000..925fe94
--- /dev/null
+++ b/config/chroot_local-hooks/03-trixie-su-fix
@@ -0,0 +1,9 @@
+#!/bin/sh
+for file in /root/config/*; do [ -r $file ] && . $file; done
+
+if [ "$LB_DISTRIBUTION" = "trixie" ]; then
+
+# force old su behaviour
+echo "ALWAYS_SET_PATH yes" >>/etc/default/su
+
+fi