Skip to content
Snippets Groups Projects
Commit df6397e1 authored by Diego Giovane Pasqualin's avatar Diego Giovane Pasqualin Committed by Diego Pasqualin
Browse files

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: default avatarDiego Giovane Pasqualin <dpasqualin@c3sl.ufpr.br>
parent bc6d056d
Branches
No related tags found
No related merge requests found
...@@ -31,9 +31,10 @@ loadConf "$PREFIX/conf/$1/create-iso.conf" $1 ...@@ -31,9 +31,10 @@ loadConf "$PREFIX/conf/$1/create-iso.conf" $1
initChroot initChroot
# Changes distro # Changes distro
chroot "$CHROOTDIR" \ chroot "$CHROOTDIR" env PATH="/fakebin:$PATH" \
apt-get -y --force-yes purge $(cat "$RMLIST" | grep -v "^#") 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 closeChroot
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment