From b72fd7b071207558c7db08447c3e2aecced41799 Mon Sep 17 00:00:00 2001 From: Harald Sitter Date: Thu, 11 Dec 2025 00:56:15 +0100 Subject: [PATCH] build: put erofs output into a file and artifact it --- .gitlab-ci.yml | 6 ++++++ build.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f055258..6199c4b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,6 +34,11 @@ imaging: after_script: # Upload all images to Harald. You can grab them at http://images.kde-linux.haraldsitter.eu/ - ./upload-to-harald.sh || true + artifacts: &artifacts + expire_in: 4 weeks + when: always + paths: + - "**/erofs.log" imaging+publish: stage: start @@ -55,3 +60,4 @@ imaging+publish: after_script: # Upload broken images to Harald for inspection - "[ $CI_JOB_STATUS == 'success' ] || ./upload-to-harald.sh || true" + artifacts: *artifacts diff --git a/build.sh b/build.sh index 95f7e4f..c218c2b 100755 --- a/build.sh +++ b/build.sh @@ -163,7 +163,7 @@ cd .. # and back to root # Drop flatpak data from erofs. They are in the usr/share/factory and deployed from there. rm -rf "$OUTPUT/var/lib/flatpak" mkdir "$OUTPUT/var/lib/flatpak" # but keep a mountpoint around for the live session -time mkfs.erofs -d0 -zzstd -C 65536 --chunksize 65536 -Efragments,ztailpacking "$ROOTFS_EROFS" "$OUTPUT" > /dev/null 2>&1 +time mkfs.erofs -d0 -zzstd -C 65536 --chunksize 65536 -Efragments,ztailpacking "$ROOTFS_EROFS" "$OUTPUT" > erofs.log 2>&1 cp --reflink=auto "$ROOTFS_EROFS" kde-linux.cache/root.raw # Now assemble the two generated images using systemd-repart and the definitions in mkosi.repart into $IMG.