[elbe-devel] [PATCH v2 4/4] Speed up beaglebone example

Benedikt Spranger b.spranger at linutronix.de
Thu Nov 8 14:04:53 CET 2018


Use the debootstrap variant minbase to speed up the build.

Signed-off-by: Benedikt Spranger <b.spranger at linutronix.de>
---
 examples/armhf-ti-beaglebone-black.xml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/examples/armhf-ti-beaglebone-black.xml b/examples/armhf-ti-beaglebone-black.xml
index 72a8fdd1..d37d77ee 100644
--- a/examples/armhf-ti-beaglebone-black.xml
+++ b/examples/armhf-ti-beaglebone-black.xml
@@ -39,6 +39,13 @@
 		<passwd>foo</passwd>
 		<!-- run a getty here: -->
 		<console>ttyO0,115200</console>
+		<!-- speed up build with debootstrap variant minbase.
+		     Using minbase here and explicit install of systemd later
+		     on speed up the installation process, since it reduces
+		     the emulated part (run in QEMU) of the installation
+		     significant.
+		-->
+		<debootstrapvariant>minbase</debootstrapvariant>
 		<package>
 			<!-- build a tarball of the target image -->
 			<tar>
@@ -109,6 +116,10 @@
 			<pkg>wget</pkg>
 			<pkg>ntpdate</pkg>
 			<pkg>busybox</pkg>
+			<!-- explicit install systemd, since debootstrap
+			     variant minbase has no default init system.
+			-->
+			<pkg>busybox</pkg>
 			<!-- install a package from backports -->
 			<pkg pin="stretch-backports">btrfs-progs</pkg>
 		</pkg-list>
-- 
2.19.1




More information about the elbe-devel mailing list