Comments (13)
I honestly have never not had separate boot and ESP, but I like Fewer partitions (simpler)
.
from fedora-coreos-tracker.
I've honestly never not had combined boot and ESP =D
from fedora-coreos-tracker.
I have seen and used both, and I currently have preference for not having the ESP as /boot
(but I can still be convinced otherwise). My concerns are:
- ESP usually has a small size and is easy to fill
- being fat32 precludes the usage of many Linux features (uid/gid, perms, xattrs, etc)
- (I think) it may preclude rpm-ostree from managing links/files under /boot
- in some environments (diskless PXE likely?) we may not have a ESP
But you do have a point on "fewer partitions". Especially in the "encrypted rootfs" scenario, I don't know how we could do that.
from fedora-coreos-tracker.
There was a big flamewar discussion about this on fedora-devel recently.
There were a lot of points brought up in that thread, but one of the most important is the BootloaderSpec Fedora Change which I really really want to do because currently with libostree we invoke grub2-mkconfig
which invokes os-prober
which is among the worst things in the base OS.
Here's a link to a comment I had in the thread.
from fedora-coreos-tracker.
wrt the Bootloader spec, I think it's fair to say that we don't care about dual booting. Automatic rollback almost makes things more complicated and I think it's perfectly okay to do things differently than fedora or other distros because of that. I just filed another issue about that. It has a proposal which would eliminate the need for ostree to even care about grub configs. So to some degree this issue is tied to how we do automatic rollbacks. I don't think following the systemd or fedora bootloader spec would actually buy us anything.
from fedora-coreos-tracker.
One thing to remember is that files under /boot
are also labeled by SELinux. Combining /boot
and ESP partitions will create a labeling problem and may upset a few people who will see SELinux warnings in their logs.
from fedora-coreos-tracker.
@mskarbek thanks for bringing that up and for discussing it during the meeting with us.
we discussed this at our meeting yesterday collectively our thoughts are:
- our goal is to make a combined boot and ESP partition, but we don't have super strong opinions here and foresee possible issues with fat32 not supporting xattrs. fallback plan is separate /boot and ESP
from fedora-coreos-tracker.
considering the SELinux limitation, is there any way we could move forward with ESP/boot combined?
from fedora-coreos-tracker.
There's not really any value to the SELinux labels in /boot
.
from fedora-coreos-tracker.
I personally do not think the loss of xattrs
and other things is a good price to pay for unified smaller /boot
because it's a FAT32 ESP.
from fedora-coreos-tracker.
what benefits of xattrs/selinux on /boot ? it contains mostly text files, sometimes initrd and kernel.
from fedora-coreos-tracker.
So, I could be mistaken, but an unlabelled /boot
would mean that only unrestricted_t
processes could modify it, unless runtime mount options gave it a specific type and policy associated with it. You would just need to ensure auto updates (locksmith? or just ostree?) would have the context to write to /boot
. It's probably not a good practice to give a background periodic task unrestricted_t
. Defeats the point of SELinux a bit.
from fedora-coreos-tracker.
Given the trouble with selinux/xattrs on fat32, and the fact we'd need to teach ostree to not try to write symlinks, I think we should separate them. /boot/efi
will only contain the grub executable which will have it's prefix (where it looks for configs) set to /boot
. This will allow us to keep as much as possible in /boot
with only the bits needed in /boot/efi
. I have a working PoC of this.
from fedora-coreos-tracker.
Related Issues (20)
- runc CVE-2024-21626 container breakouts from leaked fds HOT 3
- tracker: package additions/removals for F39 HOT 3
- rawhide: util-linux-2.40-0.1.fc40 update is causing kernel-replace test failure HOT 4
- issues with `sysroot.bootprefix: true` HOT 8
- rawhide: ext.config.var-mount.scsi-id fails HOT 3
- grub console settings with bootupd bootloader updates HOT 9
- `rpm-ostree rebase fedora/x86_64/coreos/stable` from FCOS 40 images does not work, works fine from FCOS 39 images HOT 11
- Images since Fedora 40 branched are confused about whether they're 40 or 41 HOT 2
- tracker: Rebase onto Fedora 40 HOT 13
- Migrate older systems with a root karg
- Stopping Updates for legacy CoreOS/fcct repository on Quay HOT 1
- rawhide: cliwrap causes looping in `rpm-ostree.kernel-replace` test. HOT 1
- authselect-1.5.0-4.fc40 & authselect-1.5.0-4.fc41 breaks ext.config.files.fcos_users test HOT 6
- Enable `opt-usrlocal-overlays` by default HOT 3
- client-side error: failed to decode graph: request or response body error: operation timed out HOT 5
- s390x: sgdisk sometimes flakes during disk reprovision tests HOT 3
- Have the coreos-installer '--copy-network' option also copy generated udev ifname rules HOT 2
- F40 FCOS Test Week on April 1 HOT 15
- F40 FCOS Test Day TODO List
- Ship dnf in FCOS and RHCOS HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fedora-coreos-tracker.