test-chroot script: mount distfiles

This commit is contained in:
tea 2024-07-09 11:31:56 +02:00
parent a8bfc6d474
commit ec0233c04d
No known key found for this signature in database

View File

@ -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/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
function _try_umount() {
@ -40,6 +42,8 @@ function _try_umount() {
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/guru
_try_umount ${chroot_dir}/var/db/repos/gentoo