From 9b91622b9ffd66d1e438bdaa23ca9274c5f89f12 Mon Sep 17 00:00:00 2001
From: Holger Paradies <retabell@gmx.de>
Date: Sun, 28 Apr 2019 19:12:16 +0200
Subject: force old su behaviour

---
 config/chroot_local-hooks/03-buster-su-fix | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100755 config/chroot_local-hooks/03-buster-su-fix

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
-- 
cgit v1.0