test-chroot script: mount distfiles
This commit is contained in:
parent
a8bfc6d474
commit
ec0233c04d
|
@ -30,6 +30,8 @@ mount -o bind,ro ~tea/src/gentoo ${chroot_dir}/var/db/repos/gentoo
|
||||||
mount -o bind,ro ~tea/src/guru ${chroot_dir}/var/db/repos/guru
|
mount -o bind,ro ~tea/src/guru ${chroot_dir}/var/db/repos/guru
|
||||||
mount -o bind,ro ~tea/src/tastytea-overlay ${chroot_dir}/var/db/repos/tastytea
|
mount -o bind,ro ~tea/src/tastytea-overlay ${chroot_dir}/var/db/repos/tastytea
|
||||||
|
|
||||||
|
mount -o bind /var/cache/distfiles ${chroot_dir}/var/cache/distfiles
|
||||||
|
|
||||||
chroot ${chroot_dir} /bin/bash -l
|
chroot ${chroot_dir} /bin/bash -l
|
||||||
|
|
||||||
function _try_umount() {
|
function _try_umount() {
|
||||||
|
@ -40,6 +42,8 @@ function _try_umount() {
|
||||||
setopt ERR_RETURN
|
setopt ERR_RETURN
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_try_umount ${chroot_dir}/var/cache/distfiles
|
||||||
|
|
||||||
_try_umount ${chroot_dir}/var/db/repos/tastytea
|
_try_umount ${chroot_dir}/var/db/repos/tastytea
|
||||||
_try_umount ${chroot_dir}/var/db/repos/guru
|
_try_umount ${chroot_dir}/var/db/repos/guru
|
||||||
_try_umount ${chroot_dir}/var/db/repos/gentoo
|
_try_umount ${chroot_dir}/var/db/repos/gentoo
|
||||||
|
|
Loading…
Reference in New Issue
Block a user