public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] Fix mounting of downloads dir into buildchroot
@ 2018-06-12 21:35 Jan Kiszka
  2018-06-14  8:40 ` Henning Schild
  2018-06-14 13:10 ` Maxim Yu. Osipov
  0 siblings, 2 replies; 6+ messages in thread
From: Jan Kiszka @ 2018-06-12 21:35 UTC (permalink / raw)
  To: isar-users

setup_root_file_system() mounts most of the required paths buildchroot
needs into its rootfs - except for the downloads dir. But do_build() of
dpkg-base cannot not detect this gap because it tests for isar-apt being
mounted.

To close the gap without causing duplicate mounts, just add the missing
mount to the end of buildchroot do_build().

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 meta/recipes-devtools/buildchroot/buildchroot.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/buildchroot/buildchroot.bb b/meta/recipes-devtools/buildchroot/buildchroot.bb
index 538c577..2ed5cf2 100644
--- a/meta/recipes-devtools/buildchroot/buildchroot.bb
+++ b/meta/recipes-devtools/buildchroot/buildchroot.bb
@@ -78,4 +78,6 @@ do_build() {
     # Configure root filesystem
     sudo install -m 755 ${WORKDIR}/configscript.sh ${BUILDCHROOT_DIR}
     sudo chroot ${BUILDCHROOT_DIR} /configscript.sh
+
+    sudo mount --bind ${DL_DIR} ${BUILDCHROOT_DIR}/downloads
 }
-- 
2.13.7

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-06-14 13:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-12 21:35 [PATCH] Fix mounting of downloads dir into buildchroot Jan Kiszka
2018-06-14  8:40 ` Henning Schild
2018-06-14  8:43   ` Jan Kiszka
2018-06-14 11:15     ` Henning Schild
2018-06-14 12:09       ` Jan Kiszka
2018-06-14 13:10 ` Maxim Yu. Osipov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox