[elbe-devel] [PATCH 2/9] tests simple-amd64-with-grub-tighten: make it build a bootable system

Torben Hohn torben.hohn at linutronix.de
Tue Dec 15 15:52:41 CET 2020


On Tue, Dec 15, 2020 at 02:22:23PM +0100, Bastian Germann wrote:
> 
> 
> Am 14.12.20 um 17:41 schrieb Torben Hohn:
> > Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
> > ---
> >   tests/simple-amd64-with-grub-tighten.xml | 32 ++++++++++++++++++++----
> >   1 file changed, 27 insertions(+), 5 deletions(-)
> > 
> > diff --git a/tests/simple-amd64-with-grub-tighten.xml b/tests/simple-amd64-with-grub-tighten.xml
> > index 3a777c66d..65283c423 100644
> > --- a/tests/simple-amd64-with-grub-tighten.xml
> > +++ b/tests/simple-amd64-with-grub-tighten.xml
> > @@ -26,10 +26,9 @@
> >   		<domain>elbe-ci</domain>
> >   		<passwd>root</passwd>
> >   		<console>ttyS0,115200</console>
> > -		<debootstrapvariant>minbase</debootstrapvariant>
> >   		<images>
> > -			<gpthd>
> > +			<msdoshd>
> >   				<name>sda.img</name>
> >   				<size>2000MiB</size>
> >   				<grub-install />
> > @@ -37,7 +36,7 @@
> >   					<size>remain</size>
> >   					<label>rfs</label>
> >   				</partition>
> > -			</gpthd>
> > +			</msdoshd>
> >   		</images>
> >   		<fstab>
> > @@ -49,10 +48,11 @@
> >   		</fstab>
> >   		<pkg-list>
> > -		  <pkg>busybox-static</pkg>
> > +		  <pkg>grub-pc</pkg>
> > +		  <pkg>linux-image-amd64</pkg>
> > +		  <pkg>systemd</pkg>
> >   		</pkg-list>
> > -		<tighten />
> >   		<install-recommends />
> >   		<finetuning>
> > @@ -63,4 +63,26 @@
> >   			<artifact>/etc/hosts</artifact>
> >   		</finetuning>
> >   	</target>
> > +	<check-image-list>
> > +		<check>
> > +			<img>sda.img.tar.gz</img>
> > +			<interpreter>qemu-system-x86_64</interpreter>
> > +
> > +			<!--
> > +			OVMF.fd might be in a different directory than
> > +			/usr/share/qemu on some distros.
> > +
> > +			Use the Qemu's option '-L help' to determine the list
> > +			of directories.  e.g. on Arch Linux, the option
> > +			'-L /usr/share/edk2-ovmf/x64' should be used.
> > +
> 
> Why do you mention the OVMF here? You change the system to have msdos and
> grub-pc, so it should boot with the default qemu BIOS.

oh, indeed, i forgot to remove that comment.
it was copy pasted from the uefi veriosn.

> 
> > +			This could be done using variant, but we need to
> > +			figure out a way to pass variants from elbe-ci to
> > +			elbe-check-build first.
> > +			-->
> > +			<interpreter-opts>-m 2G -enable-kvm -cpu host -drive format=raw,file=$ELBE_IMG -nographic</interpreter-opts>
> > +
> > +			<action> <login /> </action>
> > +		</check>
> > +	</check-image-list>
> >   </ns0:RootFileSystem>
> > 

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner


More information about the elbe-devel mailing list