From 0ce157d4f3605963ee92c506b5f1dbce858e6b74 Mon Sep 17 00:00:00 2001
From: Holger Paradies <retabell@gmx.de>
Date: Sat, 27 Mar 2021 13:08:24 +0100
Subject: Speedfire change su behaviour

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

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