Skip to content

re-sealing after a usroverlay? #1143

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

You must be logged in to vote

This depends on what you're testing. If you have some code running outside of systemd, then it can work well to do e.g.:

unshare -m
mkdir -p /tmp/rootfs/{upper,work}
mount -t overlay -o upperdir=/tmp/rootfs/upper,workdir=/tmp/rootfs/work,lowerdir=/usr overlay /usr

or so to get a private shell with a temporary overlayfs. This won't affect any other processes.

Alternatively if your code is running as part of a systemd unit, it's possible to do the equivalent there.

There is some support in underlying ostree for ostree admin unlock --transient (not exposed via bootc yet) which mounts the overlay read-only by default.


This also relates strongly to #1036 (comment)

Replies: 1 comment

Comment options

cgwalters
Feb 25, 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