summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2021-03-27 13:08:24 +0100
committerHolger Paradies <retabell@gmx.de>2021-03-27 13:11:21 +0100
commit0ce157d4f3605963ee92c506b5f1dbce858e6b74 (patch)
tree2213c9dff43ad32ae497cb8ac8b0d95438af2e24 /config
parentd2744aaa7e44caeda05203b7d83cb1665337b4a8 (diff)
downloadkanotix-0ce157d4f3605963ee92c506b5f1dbce858e6b74.zip
kanotix-0ce157d4f3605963ee92c506b5f1dbce858e6b74.tar.gz
Speedfire change su behaviour
Diffstat (limited to 'config')
-rwxr-xr-xconfig/chroot_local-hooks/03-bullseye-su-fix9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/03-bullseye-su-fix b/config/chroot_local-hooks/03-bullseye-su-fix
new file mode 100755
index 0000000..c3d47dc
--- /dev/null
+++ b/config/chroot_local-hooks/03-bullseye-su-fix
@@ -0,0 +1,9 @@
+#!/bin/sh
+for file in /root/config/*; do [ -r $file ] && . $file; done
+
+if [ "$LB_DISTRIBUTION" = "bullseye" ]; then
+
+# force old su behaviour
+echo "ALWAYS_SET_PATH yes" >>/etc/default/su
+
+fi