Skip to content
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

Installer does not support having EFI as subfolder of boot #150

Closed
seanvk opened this issue Nov 9, 2018 · 11 comments
Closed

Installer does not support having EFI as subfolder of boot #150

seanvk opened this issue Nov 9, 2018 · 11 comments
Labels
enhancement New feature or request

Comments

@seanvk
Copy link

seanvk commented Nov 9, 2018

Describe the bug
I can't do a custom partitioning in which the efi partition exists as a subfolder of /boot. I can do that with every other distro. I make /boot ext4 and the efi partition mount point of /boot/efi

@mdhorn
Copy link
Contributor

mdhorn commented Nov 9, 2018

@seanvk Can you do this manually without the installer?
I thought this was a clr-boot issue, no?

@seanvk
Copy link
Author

seanvk commented Nov 15, 2018

To keep the kernel updated, it is simpler and typically recommended to mount the ESP to /boot. If the ESP is not mounted to /boot, the kernel and initramfs files must be copied onto that ESP. It sounds like to me that clr-boot / systemd-boot installer and updater assumes the latter. But there is nothing to prevent you from using the first approach with systemd-boot.

@bryteise
Copy link
Member

clr-boot-manager will attempt to mount the ESP on /boot as configured in Clear Linux today.

@seanvk
Copy link
Author

seanvk commented Nov 15, 2018

That's good. So @mdhorn I just need the installer to allow me to set a different mount point for ESP

@mdhorn
Copy link
Contributor

mdhorn commented Nov 15, 2018

@seanvk What I understood was that /boot is the only choice; did I miss something?
@bryteise @nesiusra

@mdhorn mdhorn added enhancement New feature or request low priority medium impact bug with a work-around or a functional bug with a low impact labels Nov 15, 2018
@mdhorn
Copy link
Contributor

mdhorn commented Nov 15, 2018

We will be re-evaluating implementation after we have evidence this works with the clr-boot-manager.

@mdhorn mdhorn added waiting on input and removed low priority medium impact bug with a work-around or a functional bug with a low impact labels Nov 15, 2018
@bryteise
Copy link
Member

So while a user could have /boot/efi as the ESP mount point, clr-boot-manager mounts the ESP on /boot regardless. We could change clr-boot-manager to mount to /boot/efi if boot is not empty and /boot/efi exists to enable the same behavior as systemd but I don't see the benefit in enabling another hard coded location yet.

@seanvk
Copy link
Author

seanvk commented Nov 15, 2018

I understand @bryteise I'm just too use to working with Arch and configuring with bootctl where ESP is mounted. From IRC it seems like all of this is driven by having a single partition for both ESP and Boot hence the VFAT topic. I'm fine with closing this as I just wanted to confirm that it was a policy form the OS perspective rather than a limitation.

@miguelinux
Copy link
Member

This is an invalid request.

Others distros use /boot to storage kernel files.
Clear Linux uses /usr/lib/kernel.

When others EFI distros updates the kernel, they updates /boot and copy kernel files to /boot/efi.
CL updates the kernel in /usr/lib/kernel and copy kernel files to /boot

/boot/efi on others distros and /booton CL is simply ESP, (just a partition)

bootctl is configure to use /boot/ as ESP (as default), but you can change the path with a parameter, as you said before.

@seanvk
What is your use case for /boot/efi?

@mrkz
Copy link

mrkz commented Dec 3, 2018

@seanvk @miguelinux so perhaps we can close this but may be worth to have this into an F.A.Q. kind of thing if this is regularly used in other distros, so the WHY can't be done it's well documented?

@mdhorn mdhorn closed this as completed Jan 30, 2019
@knuckolls
Copy link

@miguelinux it's probably a bit my fault as much as it is the documentation but I just spent a great amount of time finding where Clear Linux allows me to edit the cmdline params of my kernel. If that comment is in the official documentation somewhere, I never ended up finding it. Worth highlighting in the official docs somewhere.

Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants