diff --git a/extra/vchroot b/extra/vchroot index 8b495ce..fd4a311 100755 --- a/extra/vchroot +++ b/extra/vchroot @@ -62,6 +62,8 @@ TERM="$TERM" \ PS1='\u:\w\$ ' \ PATH=/bin:/usr/bin:/sbin:/usr/sbin $CMD +retval=$? + popd &>/dev/null umount $LFS/dev/pts @@ -70,4 +72,4 @@ umount $LFS/run umount $LFS/proc umount $LFS/sys -exit $? +exit $retval