* [PATCH] buildchroot: Correctly mount /proc
@ 2017-11-03 13:21 Alexander Smirnov
0 siblings, 0 replies; only message in thread
From: Alexander Smirnov @ 2017-11-03 13:21 UTC (permalink / raw)
To: isar-users; +Cc: Alexander Smirnov
The variable IMAGE_ROOTFS doesn't provide correct path, so the
BUILDCHROOT_DIR should be used instead.
This patch also fixes the issue when after building the following target:
multiconfig:qemuarm-wheezy:isar-image-base
the folder:
tmp/work/debian-wheezy-armhf/buildchroot/rootfs/run/shm
stays mounted. This issue is caused by initscripts.postinst script. During
execution this script performs check whether it's running under chroot
environment using ischroot command (it checks for chroot via proc). So chroot
is not found and initscripts.postinst continues setup like for host.
Signed-off-by: Alexander Smirnov <asmirnov@ilbers.de>
---
meta/recipes-devtools/buildchroot/buildchroot.bb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta/recipes-devtools/buildchroot/buildchroot.bb b/meta/recipes-devtools/buildchroot/buildchroot.bb
index 3e5c0ac..67825b1 100644
--- a/meta/recipes-devtools/buildchroot/buildchroot.bb
+++ b/meta/recipes-devtools/buildchroot/buildchroot.bb
@@ -51,8 +51,8 @@ do_build() {
-e 's|##DIR_HOOKS##|./'"$WORKDIR_REL"'/hooks_multistrap|g' \
"${WORKDIR}/multistrap.conf.in" > "${WORKDIR}/multistrap.conf"
- install -d -m 555 ${IMAGE_ROOTFS}/proc
- sudo mount -t proc none ${IMAGE_ROOTFS}/proc
+ install -d -m 555 ${BUILDCHROOT_DIR}/proc
+ sudo mount -t proc none ${BUILDCHROOT_DIR}/proc
# Create root filesystem
sudo multistrap -a ${DISTRO_ARCH} -d "${BUILDCHROOT_DIR}" -f "${WORKDIR}/multistrap.conf"
@@ -62,5 +62,5 @@ do_build() {
# Configure root filesystem
sudo chroot ${BUILDCHROOT_DIR} /configscript.sh
- sudo umount ${IMAGE_ROOTFS}/proc
+ sudo umount ${BUILDCHROOT_DIR}/proc
}
--
2.1.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-11-03 13:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-03 13:21 [PATCH] buildchroot: Correctly mount /proc Alexander Smirnov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox