Bug#493065: debootstrap fakechroot variant fails
forcemerge 493065 588773
retitle 493065 debootstrap fakechroot variant fails due to missing PATH
tag 493065 patch
thanks
this fails because chroot is in /usr/sbin, which isn't in PATH for
normal users by default anymore. i've attached a preliminary patch that
fixes this in debootstrap, but i wonder if it wouldn't be more
appropriate to change fakeroot instead? it seems like any fakeroot
environment should include /usr/sbin and /sbin in the path, but that
isn't currently the case.
mike
diff -Nru debootstrap-1.0.25/debootstrap debootstrap-1.0.25+nmu1/debootstrap
--- debootstrap-1.0.25/debootstrap 2010-09-20 13:22:26.000000000 -0400
+++ debootstrap-1.0.25+nmu1/debootstrap 2010-10-25 23:19:58.000000000 -0400
@@ -289,6 +289,9 @@
else
error 1 NEEDARG "option requires an argument %s" "$1"
fi
+ if [ "$VARIANT" = "fakechroot" ]; then
+ export PATH=/usr/sbin:/sbin:$PATH
+ fi
;;
--keyring|--keyring=?*)
if ! gpgv --version >/dev/null 2>&1; then
Reply to: