[elbe-devel] [PATCH 3/3] examples x86_64-docker-elbe.xml: also install sbuild
Torben Hohn
torben.hohn at linutronix.de
Thu Aug 20 13:10:46 CEST 2020
Install sbuild and its dependencies.
Create an scrhroot for both stable and unstable.
(This will insert binaries without source into the target build.
The result must not be shipped.)
Maybe we should leave this private to our infrastructure.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
examples/x86_64-docker-elbe.xml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/examples/x86_64-docker-elbe.xml b/examples/x86_64-docker-elbe.xml
index 408796cf3..b40b0a29d 100644
--- a/examples/x86_64-docker-elbe.xml
+++ b/examples/x86_64-docker-elbe.xml
@@ -160,6 +160,10 @@ a6EqDGtKLEkEM5G1qtDILnp3cIEZm3CFO8ll
</package>
<pkg-list>
<pkg>elbe</pkg>
+ <pkg>sbuild</pkg>
+ <pkg>schroot</pkg>
+ <pkg>debootstrap</pkg>
+
</pkg-list>
<finetuning>
<rm>var/cache/apt/archives/*.deb</rm>
@@ -192,6 +196,12 @@ a6EqDGtKLEkEM5G1qtDILnp3cIEZm3CFO8ll
<adduser groups="kvm,libvirt" passwd="elbe" shell="/bin/bash">elbe</adduser>
<command>systemctl enable libvirtd</command>
+
+ <command>cp /usr/share/doc/sbuild/examples/example.sbuildrc /home/elbe/.sbuildrc</command>
+ <command>chown elbe:elbe /home/elbe/.sbuildrc</command>
+ <command>sbuild-createchroot --include=eatmydata,ccache,gnupg unstable /srv/chroot/unstable-amd64-sbuild http://ftp.de.debian.org/debian</command>
+ <command>sbuild-createchroot --include=eatmydata,ccache,gnupg stable /srv/chroot/stable-amd64-sbuild http://ftp.de.debian.org/debian</command>
+ <command>sbuild-adduser elbe</command>
</finetuning>
</target>
</ns0:RootFileSystem>
--
2.20.1
More information about the elbe-devel
mailing list