[PATCH] same PATH as root

Geert Stappers <[email protected]>
Newsgroups gmane.linux.debian.devel.embedded
Message-ID <[email protected]>
Usually doesn't has an user /usr/sbin and /sbin in his $PATH.
However the programms chroot and multistrap are in /usr/sbin
During preinst is insserv called, which is in /sbin
---
 polystrap.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/polystrap.sh b/polystrap.sh
index 610d49c..212438b 100755
--- a/polystrap.sh
+++ b/polystrap.sh
@@ -32,6 +32,8 @@ usage() {
 
 export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C
 
+export PATH=$PATH:/usr/sbin:/sbin
+
 if [ "$FAKEROOTKEY" = "" ]; then
         echo "re-executing script inside fakeroot"
         fakeroot "$0" "$@";
-- 
1.7.5.4
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.