From df6397e10667cb4944f7f2076184818f53e70649 Mon Sep 17 00:00:00 2001
From: Diego Giovane Pasqualin <dpasqualin@c3sl.ufpr.br>
Date: Mon, 26 Aug 2013 15:24:06 -0300
Subject: [PATCH] 10-remove: Use fakebin directory when removing packages

The same error* that used to happen when installing packages is now happening
when removing them. We are using the same method to avoid this errors.

* Failed to connect to socket /com/ubuntu/upstart: Connection refused

Signed-off-by: Diego Giovane Pasqualin <dpasqualin@c3sl.ufpr.br>
---
 scripts/10-remove | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/10-remove b/scripts/10-remove
index 00b7fd8..2afebeb 100755
--- a/scripts/10-remove
+++ b/scripts/10-remove
@@ -31,9 +31,10 @@ loadConf "$PREFIX/conf/$1/create-iso.conf" $1
 initChroot
 
 # Changes distro
-chroot  "$CHROOTDIR" \
+chroot  "$CHROOTDIR" env PATH="/fakebin:$PATH" \
     apt-get -y --force-yes purge $(cat "$RMLIST" | grep -v "^#")
-chroot  "$CHROOTDIR" apt-get -y --force-yes autoremove
+chroot  "$CHROOTDIR" env PATH="/fakebin:$PATH" \
+    apt-get -y --force-yes autoremove
 
 closeChroot
 
-- 
GitLab