Coder Social home page Coder Social logo

Comments (13)

dustymabe avatar dustymabe commented on July 18, 2024

I honestly have never not had separate boot and ESP, but I like Fewer partitions (simpler).

from fedora-coreos-tracker.

ajeddeloh avatar ajeddeloh commented on July 18, 2024

I've honestly never not had combined boot and ESP =D

from fedora-coreos-tracker.

lucab avatar lucab commented on July 18, 2024

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.

cgwalters avatar cgwalters commented on July 18, 2024

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.

ajeddeloh avatar ajeddeloh commented on July 18, 2024

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.

mskarbek avatar mskarbek commented on July 18, 2024

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.

dustymabe avatar dustymabe commented on July 18, 2024

@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.

dustymabe avatar dustymabe commented on July 18, 2024

considering the SELinux limitation, is there any way we could move forward with ESP/boot combined?

from fedora-coreos-tracker.

cgwalters avatar cgwalters commented on July 18, 2024

There's not really any value to the SELinux labels in /boot.

from fedora-coreos-tracker.

Conan-Kudo avatar Conan-Kudo commented on July 18, 2024

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.

vtolstov avatar vtolstov commented on July 18, 2024

what benefits of xattrs/selinux on /boot ? it contains mostly text files, sometimes initrd and kernel.

from fedora-coreos-tracker.

dcode avatar dcode commented on July 18, 2024

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.

ajeddeloh avatar ajeddeloh commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.