build: put erofs output into a file and artifact it

This commit is contained in:
Harald Sitter
2025-12-11 00:56:15 +01:00
parent 29f2a5ba19
commit b72fd7b071
2 changed files with 7 additions and 1 deletions

View File

@@ -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

View File

@@ -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.