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

Manuel Traut manut at linutronix.de
Thu Nov 8 14:15:06 CET 2018


On Thu, Nov 08, 2018 at 02:04:53PM +0100, Benedikt Spranger wrote:
> 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.
> +		-->

		<!-- speed up build with debootstrap variant minbase.
		If systemd is installed during debootstrap the runtime dependency
		calculation is very expensive, because dpkg/apt is not available
		and some imperformant perl scripts are calculating the dependencies.
		-->

> +		<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>

s/busybox/systemd

>  			<!-- install a package from backports -->
>  			<pkg pin="stretch-backports">btrfs-progs</pkg>
>  		</pkg-list>
> -- 
> 2.19.1
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel



More information about the elbe-devel mailing list