Skip to content
Snippets Groups Projects
Unverified Commit 59d7a78c authored by methanal's avatar methanal Committed by Clayton Craft
Browse files

ci: switch to unpackbooting from osm0sis (MR 57)

parent c1485972
No related branches found
No related tags found
No related merge requests found
......@@ -210,17 +210,16 @@ validate_bootimg() {
assert_exists "$boot_dir/boot.img"
mkdir bootimg_extract
unpack_bootimg \
--boot_img "$boot_dir/boot.img" \
--out bootimg_extract \
--format=mkbootimg \
unpackbootimg \
--input "$boot_dir/boot.img" \
--output bootimg_extract \
> bootimg_extract/mkbootimg_args
# Check that the kernel and initramfs are in the boot image
# and match the source files
assert_same "$kernel_with_dtb" bootimg_extract/kernel
assert_same "$kernel_with_dtb" bootimg_extract/boot.img-kernel
echo " Checking that the boot image contains the initramfs"
assert_equal "$(stat -c%s bootimg_extract/ramdisk)" "$(stat -c%s work/"$initfs_filename")"
assert_equal "$(stat -c%s bootimg_extract/boot.img-ramdisk)" "$(stat -c%s work/"$initfs_filename")"
}
parse_conf_entry() {
......
......@@ -20,6 +20,7 @@ integration test:
stage: integration tests
before_script:
- apk add curl android-tools file
- apk add --allow-untrusted -X http://mirror.postmarketos.org/postmarketos/master/ mkbootimg-osm0sis
- curl -fsSL "https://gitlab.com/postmarketOS/ci-common/-/raw/master/install_pmbootstrap.sh" | sh
- su pmos -c "pmbootstrap config device ${DEVICE}"
- su pmos -c "pmbootstrap config ui none"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment