summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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