From 17d5c6e6f1ced429dc8bcbaee19d037b06fbd799 Mon Sep 17 00:00:00 2001 From: emmett1 Date: Sun, 25 Nov 2018 17:57:09 +0800 Subject: [PATCH] update vchroot script --- extra/vchroot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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