summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2019-04-28 19:12:16 +0200
committerHolger Paradies <retabell@gmx.de>2019-04-30 21:16:56 +0200
commit9b91622b9ffd66d1e438bdaa23ca9274c5f89f12 (patch)
tree657477f998abbb83544f7e7827e29c9f889452a0 /config
parent9f7ca62bc32370b00144c743c2c6e7221d98872e (diff)
downloadkanotix-9b91622b9ffd66d1e438bdaa23ca9274c5f89f12.zip
kanotix-9b91622b9ffd66d1e438bdaa23ca9274c5f89f12.tar.gz
force old su behaviour
Diffstat (limited to 'config')
-rwxr-xr-xconfig/chroot_local-hooks/03-buster-su-fix9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/03-buster-su-fix b/config/chroot_local-hooks/03-buster-su-fix
new file mode 100755
index 0000000..4a0c325
--- /dev/null
+++ b/config/chroot_local-hooks/03-buster-su-fix
@@ -0,0 +1,9 @@
+#!/bin/sh
+for file in /root/config/*; do [ -r $file ] && . $file; done
+
+if [ "$LB_DISTRIBUTION" = "buster" ]; then
+
+# force old su behaviour
+echo "ALWAYS_SET_PATH yes" >>/etc/default/su
+
+fi