diff options
author | Holger Paradies <retabell@gmx.de> | 2019-04-28 19:12:16 +0200 |
---|---|---|
committer | Holger Paradies <retabell@gmx.de> | 2019-04-30 21:16:56 +0200 |
commit | 9b91622b9ffd66d1e438bdaa23ca9274c5f89f12 (patch) | |
tree | 657477f998abbb83544f7e7827e29c9f889452a0 /config/chroot_local-hooks | |
parent | 9f7ca62bc32370b00144c743c2c6e7221d98872e (diff) | |
download | kanotix-9b91622b9ffd66d1e438bdaa23ca9274c5f89f12.zip kanotix-9b91622b9ffd66d1e438bdaa23ca9274c5f89f12.tar.gz |
force old su behaviour
Diffstat (limited to 'config/chroot_local-hooks')
-rwxr-xr-x | config/chroot_local-hooks/03-buster-su-fix | 9 |
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 |