[elbe-devel] [PATCH] Speed up and shrink beaglebone example

Manuel Traut manut at linutronix.de
Mon Nov 19 12:38:24 CET 2018


On Mon, Nov 19, 2018 at 12:00:27PM +0100, Benedikt Spranger wrote:
> Use the debootstrap variant minbase to speed up and shrink the build.
> 
> The minbase variant lacks a couple of packages installed by the normal
> install. This allows a fine granular list of installed packages in the
> rootfilesystem.
> 
> To compare the build times the following packages are added to the package
> list:
> 
> apt-utils
> bsdmainutils
> cron
> debconf-i18n
> dmidecode
> gnupg
> gnupg-agent
> ifupdown
> init
> iproute2
> iptables
> iputils-ping
> isc-dhcp-client
> isc-dhcp-common
> libapt-inst2.0
> libassuan0
> libdns-export162
> libelf1
> libestr0
> libfastjson4
> libgdbm3
> libip6tc0
> libiptc0
> libisc-export160
> libksba8
> liblocale-gettext-perl
> liblogging-stdlog0
> liblognorm5
> libmnl0
> libnetfilter-conntrack3
> libnewt0.52
> libnfnetlink0
> libnpth0
> libpipeline1
> libpopt0
> libreadline7
> libslang2
> libsqlite3-0
> libtext-charwidth-perl
> libtext-iconv-perl
> libtext-wrapi18n-perl
> libxapian30
> libxtables12
> logrotate
> nano
> pinentry-curses
> readline-common
> rsyslog
> systemd-sysv
> tasksel
> tasksel-data
> whiptail
> 
> The following times are determined by running
> $ time ./elbe initvm submit --skip-build-bin --skip-build-sources \
>   examples/armhf-ti-beaglebone-black.xml
> 
> Before change:		After change:
> --------------		-------------
> real    21m45.426s	real    13m10.055s
> user    0m22.771s	user    0m18.565s
> sys     0m4.679s	sys     0m3.881s
> 
> Signed-off-by: Benedikt Spranger <b.spranger at linutronix.de>

Reviewed-by: Manuel Traut <manut at linutronix.de>

and applied to devel/elbe-3.0 - THANKS!  Manuel

> ---
>  examples/armhf-ti-beaglebone-black.xml | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/examples/armhf-ti-beaglebone-black.xml b/examples/armhf-ti-beaglebone-black.xml
> index 3f188902..56c191ba 100644
> --- a/examples/armhf-ti-beaglebone-black.xml
> +++ b/examples/armhf-ti-beaglebone-black.xml
> @@ -37,6 +37,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>
> @@ -107,6 +114,11 @@
>  			<pkg>wget</pkg>
>  			<pkg>ntpdate</pkg>
>  			<pkg>busybox</pkg>
> +			<!--
> +			    explicit install of systemd, since debootstrap
> +			    variant minbase has no default init system.
> +			-->
> +			<pkg>systemd</pkg>
>  			<!-- install a package from backports -->
>  			<pkg pin="stretch-backports">btrfs-progs</pkg>
>  			<!-- install the libgpio built by pbuilder  -->
> -- 
> 2.19.1
> 



More information about the elbe-devel mailing list