diff options
author | Holger Paradies <retabell@gmx.de> | 2024-03-02 09:02:23 +0100 |
---|---|---|
committer | Holger Paradies <retabell@gmx.de> | 2024-03-02 09:02:23 +0100 |
commit | 06482b998ae07c65b0d72a5ea4b90ac6eca351ec (patch) | |
tree | a0f8ef11274c12ef33c5a350836ff8dbce1940d2 /config/chroot_local-hooks/03-bookworm-su-fix | |
parent | e769c926523cc369097f7cdec99c015961d35d23 (diff) | |
download | kanotix-06482b998ae07c65b0d72a5ea4b90ac6eca351ec.zip kanotix-06482b998ae07c65b0d72a5ea4b90ac6eca351ec.tar.gz |
Add bookworm fixes chroot
Diffstat (limited to 'config/chroot_local-hooks/03-bookworm-su-fix')
-rwxr-xr-x | config/chroot_local-hooks/03-bookworm-su-fix | 9 |
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 |