public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH 0/2] mounts for buildchroot
@ 2018-02-05 16:43 Alexander Smirnov
  2018-02-05 16:43 ` [PATCH 1/2] buildchroot: Do not call 'apt-get update' Alexander Smirnov
  2018-02-05 16:43 ` [PATCH 2/2] buildchroot: Permanently mount '/dev', '/sys' and '/proc' Alexander Smirnov
  0 siblings, 2 replies; 19+ messages in thread
From: Alexander Smirnov @ 2018-02-05 16:43 UTC (permalink / raw)
  To: isar-users; +Cc: Alexander Smirnov

Hi all,

this series introduces my vision, how virtual filsystems (dev, sys, proc)
should be provided to buildchroot.

Currently we use several mounts around some pieces of code, but this
approach can't guarantee that adding new package or feature will not
also require these mounts. So I propose to have permanently mounted the
following systems in buildchroot:

 - /sys
 - /proc
 - /dev (--bind)

Mount is performed very early, the umount is dome via event BuildCompleted.
This approach frees us from handling build fails cases, because this event
occured anytime bitbake finished it's execution.

Alex

Alexander Smirnov (2):
  buildchroot: Do not call 'apt-get update'
  buildchroot: Permanently mount '/dev', '/sys' and '/proc'

 meta/classes/isar-events.bbclass                    |  3 +++
 meta/recipes-devtools/buildchroot/buildchroot.bb    | 21 +++++++--------------
 .../buildchroot/files/configscript.sh               |  5 -----
 .../buildchroot/files/download_dev-random           | 13 -------------
 4 files changed, 10 insertions(+), 32 deletions(-)
 delete mode 100644 meta/recipes-devtools/buildchroot/files/download_dev-random

-- 
2.1.4


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

end of thread, other threads:[~2018-02-06  9:43 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-05 16:43 [PATCH 0/2] mounts for buildchroot Alexander Smirnov
2018-02-05 16:43 ` [PATCH 1/2] buildchroot: Do not call 'apt-get update' Alexander Smirnov
2018-02-05 16:51   ` Jan Kiszka
2018-02-05 17:06     ` Alexander Smirnov
2018-02-05 17:25       ` Jan Kiszka
2018-02-06  9:12         ` Alexander Smirnov
2018-02-06  9:13           ` Alexander Smirnov
2018-02-06  9:38             ` Jan Kiszka
2018-02-05 16:43 ` [PATCH 2/2] buildchroot: Permanently mount '/dev', '/sys' and '/proc' Alexander Smirnov
2018-02-05 16:53   ` Jan Kiszka
2018-02-05 17:16     ` Alexander Smirnov
2018-02-05 17:30       ` Jan Kiszka
2018-02-05 17:32         ` Jan Kiszka
2018-02-05 17:50           ` Jan Kiszka
2018-02-05 18:03             ` Jan Kiszka
2018-02-05 18:03             ` Alexander Smirnov
2018-02-05 18:06               ` Jan Kiszka
2018-02-06  9:38                 ` Jan Kiszka
2018-02-06  9:43                   ` Alexander Smirnov

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