summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2011-07-26 15:11:34 +0200
committerOtavio Salvador <otavio@ossystems.com.br>2011-07-26 15:11:34 +0200
commitedaeb76e8f4bb56ad10dded3fffb9d82febdae67 (patch)
treef710475cb8401b4118bab092c2424f4af70ca021
parent5daff52c7894188f515bf019ba7004609bcb2ad2 (diff)
downloaddebootstrap-edaeb76e8f4bb56ad10dded3fffb9d82febdae67.tar.gz
add /usr/sbin and /sbin to PATH for fakechroot variant. Closes: #588773
-rw-r--r--debian/changelog2
-rw-r--r--functions4
2 files changed, 6 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index daad290..663ba3b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ debootstrap (1.0.34) UNRELEASED; urgency=low
* Add more information regarding the version and architecture in case
a download fails. Closes: #633625.
+ * add /usr/sbin and /sbin to PATH for fakechroot variant. Closes:
+ #588773
-- Otavio Salvador <otavio@debian.org> Sun, 24 Jul 2011 18:24:40 +0200
diff --git a/functions b/functions
index bd01ebe..2451ba6 100644
--- a/functions
+++ b/functions
@@ -1290,6 +1290,10 @@ on_exit () {
############################################################## fakechroot tools
install_fakechroot_tools () {
+ if [ "$VARIANT" = "fakechroot" ]; then
+ export PATH=/usr/sbin:/sbin:$PATH
+ fi
+
mv "$TARGET/sbin/ldconfig" "$TARGET/sbin/ldconfig.REAL"
echo \
"#!/bin/sh