chroot: rmdir xbps_crossdir while exiting.
--HG-- extra : convert_revision : 734fef927ce93ce24c605025501318002fa56267
This commit is contained in:
parent
9b1c29e19b
commit
5e64daeed6
|
@ -35,8 +35,8 @@ else
|
||||||
msg_normal "Entering into the chroot on $XBPS_MASTERDIR."
|
msg_normal "Entering into the chroot on $XBPS_MASTERDIR."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
REQDIRS="bin sbin tmp var sys proc dev xbps xbps_builddir \
|
EXTDIRS="xbps xbps_builddir xbps_destdir xbps_srcdistdir xbps_crossdir"
|
||||||
xbps_destdir xbps_srcdistdir xbps_crossdir"
|
REQDIRS="bin sbin tmp var sys proc dev ${EXTDIRS}"
|
||||||
for f in ${REQDIRS}; do
|
for f in ${REQDIRS}; do
|
||||||
[ ! -d $XBPS_MASTERDIR/$f ] && mkdir -p $XBPS_MASTERDIR/$f
|
[ ! -d $XBPS_MASTERDIR/$f ] && mkdir -p $XBPS_MASTERDIR/$f
|
||||||
done
|
done
|
||||||
|
@ -153,7 +153,7 @@ umount_chroot_fs()
|
||||||
unset fs
|
unset fs
|
||||||
done
|
done
|
||||||
|
|
||||||
for dir in xbps xbps_builddir xbps_destdir xbps_srcdistdir; do
|
for dir in ${EXTDIRS}; do
|
||||||
[ -f $XBPS_MASTERDIR/.${dir}_mount_bind_done ] && continue
|
[ -f $XBPS_MASTERDIR/.${dir}_mount_bind_done ] && continue
|
||||||
[ -d $XBPS_MASTERDIR/$dir ] && rmdir $XBPS_MASTERDIR/$dir
|
[ -d $XBPS_MASTERDIR/$dir ] && rmdir $XBPS_MASTERDIR/$dir
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue