Skip to content

Downstream customization for appliance creators #1085

Answered by cgwalters
cgwalters asked this question in Q&A
Discussion options

You must be logged in to vote

The basic answer here is to use /etc and some tool that can inject content into it (cloud-init, kickstart, etc.).

At least on Fedora derivatives, ca certificates are always in /etc/pki/ca-trust, and if that is left in the default bootc state of writable and persistent (as it needs to be for this) then a kickstart %post which writes it will work.

Another case is "customer wants to harden the image, for example noexec on /tmp". That will work fine by writing a drop-in like this:

# /etc/systemd/system/tmp.mount.d/noexec.conf
[Mount]
Options=mode=1777,strictatime,nosuid,nodev,size=50%%,nr_inodes=1m,noexec

Note addition of noexec.


Or of course, instead of exposing the generic ability to writ…

Replies: 1 comment

Comment options

cgwalters
Feb 6, 2025
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by cgwalters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant