summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/03-bookworm-su-fix
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2024-03-02 09:02:23 +0100
committerHolger Paradies <retabell@gmx.de>2024-03-02 09:02:23 +0100
commit06482b998ae07c65b0d72a5ea4b90ac6eca351ec (patch)
treea0f8ef11274c12ef33c5a350836ff8dbce1940d2 /config/chroot_local-hooks/03-bookworm-su-fix
parente769c926523cc369097f7cdec99c015961d35d23 (diff)
downloadkanotix-06482b998ae07c65b0d72a5ea4b90ac6eca351ec.zip
kanotix-06482b998ae07c65b0d72a5ea4b90ac6eca351ec.tar.gz
Add bookworm fixes chroot
Diffstat (limited to 'config/chroot_local-hooks/03-bookworm-su-fix')
-rwxr-xr-xconfig/chroot_local-hooks/03-bookworm-su-fix9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/03-bookworm-su-fix b/config/chroot_local-hooks/03-bookworm-su-fix
new file mode 100755
index 0000000..1fa76be
--- /dev/null
+++ b/config/chroot_local-hooks/03-bookworm-su-fix
@@ -0,0 +1,9 @@
+#!/bin/sh
+for file in /root/config/*; do [ -r $file ] && . $file; done
+
+if [ "$LB_DISTRIBUTION" = "bookworm" ]; then
+
+# force old su behaviour
+echo "ALWAYS_SET_PATH yes" >>/etc/default/su
+
+fi