-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling of /etc/fstab #357
Comments
One more quick note related to this and #267 (comment): [..]
I wonder if we cannot simply have a dir for bootc images under |
IMO the model of having I think the classic case here is XFS and the
Yeah, that's been a goal for many years; there's still some stragglers in popular software that make it problematic for general purpose systems. Anyways, so besides the root mount, as you noted bootc today writes an entry for (This gets into the discoverable partition spec, but last I looked that worked well in virt setups but causes problems on bare metal where one might have legacy/unused OS installs that happen to be on other block devices). For Also, I think in general we need to support arbitrary machine-local mutable state; today the way Anaconda installs work for example it just writes stuff into Ultimately I think the most practical thing for those who want to avoid unmanaged state is going as far as possible towards a "transient /etc" flow, and baking bootstrap configuration into the OS image. Backing up to a high level, for just having bib use bootc install to-filesystem (i.e. closing the basics of this issue) - per above are we really blocked? There's certainly some things to flesh out of course, like whether tools like anaconda/bib should append to |
Thanks for your excellent feedback. I agree, let's not block on this, I will move forward. |
There's a bunch of stuff in this issue...let's try to split it into more actionable dedicated issues. I made one just for /boot. |
While there's good discussion in this issue it isn't actionable in itself, we have a tracker for the /boot one. |
While moving into the brave new
bootc install to-filesystem
world for bootc-image-builder I noticed that we need a way to write a "correct" /etc/fstab (this might actually be a larger topic but let's focus on this use-case).Currently bib uses a fairly standard partition table [0] but the booted image generated with
bootc install to-filesystem
will only contain/boot
in the fstab (it looks like it's using a hardcoded method here [1]?). But it seems preferable to have a complete fstab with "/", "/boot" and "/boot/efi" [2]. bib/osbuild have ways to generate the correct fstab but there is currently no way (afaict) to put it into the deployment.Interestingly it seems even though
/boot
is part of fstab it's not mounted (but that might be a fedora:eln issue)So my questions are:
bootc install to-disk
writes the same (incomplete) /etc/fstab ? Probably yes so that install to-disk has the right information but the "install to-filesystem" case is more tricky--copy-etc
#267 and push the bib generated /etc/fstab this way. The downside here is that /etc/fstab will be untracked state. Which is bad because if the bootc image ever changes their opinion about mounts it can no longer do it via /etc/fstab (but systemd mount units are a thing).I hope this makes sense, I still have huge gaps in my understanding of the details of ostree (sorry for that).
[0] https://github.com/osbuild/bootc-image-builder/blob/main/bib/cmd/bootc-image-builder/partition_tables.go#L19
[1] https://github.com/containers/bootc/blob/main/lib/src/install.rs#L600
[2] Also with the goal of bootc to be a generic tool it seems users will want to customize /etc/fstab and have their /backup mounts in there etc.
The text was updated successfully, but these errors were encountered: