aboutsummaryrefslogtreecommitdiff
path: root/lava-debian-sid-arm64.yaml
diff options
context:
space:
mode:
authorNeil Williams <neil.williams@linaro.org>2016-10-13 17:27:12 +0100
committerFathi Boudra <fathi.boudra@linaro.org>2016-10-14 14:41:40 +0000
commit389451e207c2886b0c72504333884794d5706bda (patch)
tree6829dd140600995cea71971e83dfc68298e07256 /lava-debian-sid-arm64.yaml
parent6d9f57a7bf936551401f3a047c340b41cd7b379e (diff)
Add an image suitable for use with QEMU
Build a similar system to the NFS tarball as an image which can be used with qemu-system in LAVA using the UUID of the partition. Fix typo in lava-debian-jessie-arm64.yaml Publish the Debian stable amd64 VM files for permanence. Change-Id: I276123cfe378d1ab2c42c85bcb064a75ec2ef418
Diffstat (limited to 'lava-debian-sid-arm64.yaml')
-rw-r--r--lava-debian-sid-arm64.yaml50
1 files changed, 34 insertions, 16 deletions
diff --git a/lava-debian-sid-arm64.yaml b/lava-debian-sid-arm64.yaml
index 88952a7195..ff23675b09 100644
--- a/lava-debian-sid-arm64.yaml
+++ b/lava-debian-sid-arm64.yaml
@@ -28,41 +28,57 @@
mkdir out
cd out/
sudo apt -q update
- sudo apt -q -y install qemu-user-static debootstrap
+ sudo apt -q -y install qemu-user-static debootstrap python-guestfs
wget https://git.linaro.org/lava-team/refactoring.git/blob_plain/HEAD:/scripts/build-foreign-nfs.sh
+ wget https://git.linaro.org/lava-team/refactoring.git/blob_plain/HEAD:/scripts/build-foreign-image.sh
+ wget https://git.linaro.org/lava-team/refactoring.git/blob_plain/HEAD:/scripts/guest-img.py
chmod 744 ./build-foreign-nfs.sh
sudo ./build-foreign-nfs.sh -a arm64 -b /usr/bin/qemu-aarch64-static -d sid
+ sudo sh ./build-foreign-image.sh -a arm64 -b /usr/bin/qemu-aarch64-static -d sid
cd ..
cat > ${WORKSPACE}/out/debian-arm64-readme.html <<EOF
<html><body><pre>
- lava-debian-jessie-arm64 build instructions
- ===========================================
+ lava-debian-sid-arm64 build instructions
+ ========================================
- This initramfs is built using update-initramfs inside a
- minimal Debian Jessie debootstrap chroot.
- The contents of the chroot is then packaged up as an NFS
- with an empty root password.
- auto_login:
- login_prompt: 'login:'
- username: root
+ This initramfs is built using update-initramfs inside a minimal
+ Debian Unstable debootstrap chroot. The contents of the chroot is
+ then packaged up as an NFS with an empty root password.
- apt is included in the NFS, as are bash, grep, iproute2, mawk and sed.
- The NFS uses the default init in unstable: systemd.
+ apt is included in the NFS, as are bash, grep, iproute2, mawk and
+ sed. The NFS uses the default init in unstable: systemd.
- The Debian ARMMP kernel is a modular build and the modules
+ The Debian ARM64 kernel is a modular build and the modules
need to be available in the initramfs for the kernel to be
able to mount the NFS. The initramfs does not have DNS
support.
+ A similar chroot is created with systemd-sysv added. The chroot is
+ unpacked into an empty ext2 primary partition of an image:
+ sid-arm64.img The UUID of the partition is available as
+ sid-arm64.img.uuid.txt and should be appended to the kernel command
+ line using the root= argument when testing the image using QEMU in
+ LAVA to ensure that the correct drive is booted. The image has
+ systemd-networkd and systemd-resolved enabled to use DHCP on the
+ primary network interface.
+
+ When using the image and the UUID, ensure that you also use the
+ checksums to ensure that the UUID matches the files being
+ downloaded.
+
https://ci.linaro.org/view/lava-ci/job/lava-debian-sid-arm64/
- The script used by jenkins is available here:
- https://git.linaro.org/lava-team/refactoring.git/blob/HEAD:/scripts/armmp-nfs.sh
+ The scripts used by jenkins are available here:
+ https://git.linaro.org/lava-team/refactoring.git/tree/HEAD:/scripts
https://git.linaro.org/ci/job/configs.git/blob/HEAD:/lava-debian-sid-arm64.yaml
The base system is a Debian Unstable VM.
- The NFS rootfs uses a prompt of "root@sid:"
+ The NFS rootfs and the image both use a prompt of "root@sid:" and
+ the same auto login details:
+ auto_login:
+ login_prompt: 'login:'
+ username: root
</pre></body></html>
EOF
@@ -72,5 +88,7 @@
wget -q https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py
time python ${HOME}/bin/linaro-cp.py --api_version 3 out components/lava/standard/debian/sid/arm64/${BUILD_NUMBER}
publishers:
+ # - archive:
+ # artifacts: 'out/*'
- email:
recipients: 'neil.williams@linaro.org fathi.boudra@linaro.org'