Best way to customize ucore

Hi everyone! I am creating a customized version of ucore: basically this would be the same as the “ucore” image, but with a couple of packages added. My question would be: what is in your opinion the best, cleanest way to customize ucore? I could think of two ways:

* Using this repo: GitHub - ublue-os/image-template: Build your own custom Universal Blue Image! , with ucore/stable as the base image. This works for my case, but the bootc linting step gives me some warnings:–> 34d4e25840c3

[2/2] STEP 3/3: RUN bootc container lint
Lint warning: nonempty-boot: Found non-empty /boot:
  symvers-6.14.11-300.fc42.x86_64.xz
Lint warning: var-tmpfiles: Found content in /var missing systemd tmpfiles.d entries:
  d /var/lib/alsa 0755 root root - -
  d /var/lib/dnf 0755 root root - -
  d /var/lib/dnf/repos 0755 root root - -
  d /var/lib/dnf/repos/updates-79babcf8637033ce 0755 root root - -
  d /var/lib/geoclue 0755 geoclue geoclue - -
Found non-directory/non-symlink files in /var:
  var/lib/dnf/repos/updates-79babcf8637033ce/countme
Checks passed: 10
Checks skipped: 1
Warnings: 2
[2/2] COMMIT ublue-os-ucore-vlm:stable
--> 9573fc0ca031
[Warning] one or more build args were not consumed: [SHA_HEAD_SHORT]
Successfully tagged localhost/ublue-os-ucore-vlm:stable
9573fc0ca031aebdf0e9395fa3e631a9135718ebbb73e32de59795b42812395c

This actually led me to think of a second way:

* Forking the ucore repository and directly modify the ucore build files.

Which one do you think is the smoother, cleaer? Should I ignore the linting messages?

Thank you and you all have a nice day!

Valerio

Edit: typos

If using the ublue-os/image-template with ucore as the base image works for you, then that’s definitely the cleaner way. Otherwise, if you clone the ucore repo and modify the build files, you’d have to keep track of the original ucore repo for upstream changes. Using the image-template way will ensure you’ll always have a stable ucore image as the base image.

Thank you. I think the errors pointed out be the linker could be solved by creating the directories manually, so everything should go well! I will also take a look at cayo as the development progresses. Thank you again!

1 Like