Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] RFC: move kernels out of /boot
@ 2024-01-01 22:46 Duncaen
  2024-01-02 11:22 ` dkwo
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Duncaen @ 2024-01-01 22:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1073 bytes --]

New issue by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/issues/48024

Description:
Some distributions have started to move the kernels out of the boot directory by default and let the install hooks etc handle copying them over.

The kernel hooks would then copy the kernels into `/boot`, users could then change the hooks to i.e. allow to create unified kernel image (UKI) executable without the extra duplication between the UKI file and the package dropped kernel binary.

Seems like the "standard" location for kernel files would be `/usr/lib/modules/${VERSION}/vmlinuz`.

Advantages:
 - kernels can be copied to /boot and modified for i.e. signing.
 - kernels don't have to be copied to /boot for UKIs.
 - kernel.d post install moves kernels after the initramfs hook, the stupid grub mkconfig wouldn't put up kernels for which initramfs generation failed. (https://github.com/void-linux/void-packages/issues/46006)
 - Maybe good for raspberrypi kernels too, let install hooks move them to the weird kernel8.img names? 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: RFC: move kernels out of /boot
  2024-01-01 22:46 [ISSUE] RFC: move kernels out of /boot Duncaen
@ 2024-01-02 11:22 ` dkwo
  2024-01-09 16:10 ` mbsmith
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dkwo @ 2024-01-02 11:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 231 bytes --]

New comment by dkwo on void-packages repository

https://github.com/void-linux/void-packages/issues/48024#issuecomment-1873903895

Comment:
Good idea. This is also useful on apple silicon, where you concatenate a payload for m1n1.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: RFC: move kernels out of /boot
  2024-01-01 22:46 [ISSUE] RFC: move kernels out of /boot Duncaen
  2024-01-02 11:22 ` dkwo
@ 2024-01-09 16:10 ` mbsmith
  2024-01-09 16:12 ` classabbyamp
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mbsmith @ 2024-01-09 16:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 434 bytes --]

New comment by mbsmith on void-packages repository

https://github.com/void-linux/void-packages/issues/48024#issuecomment-1883343182

Comment:
Well that goes against the [https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s05.html](boot) section of FHS 3.0.  However if we're not trying to comply to that I don't see an issue.  I double checked to see if SUS/POSIX has any issues with it and it appears it doesn't.  I'm all for it.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: RFC: move kernels out of /boot
  2024-01-01 22:46 [ISSUE] RFC: move kernels out of /boot Duncaen
  2024-01-02 11:22 ` dkwo
  2024-01-09 16:10 ` mbsmith
@ 2024-01-09 16:12 ` classabbyamp
  2024-01-09 16:13 ` classabbyamp
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: classabbyamp @ 2024-01-09 16:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 455 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/48024#issuecomment-1883347099

Comment:
no it doesn't. this is only for how they are packaged:

> The kernel hooks would then copy the kernels into /boot, users could then change the hooks to i.e. allow to create unified kernel image (UKI) executable without the extra duplication between the UKI file and the package dropped kernel binary.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: RFC: move kernels out of /boot
  2024-01-01 22:46 [ISSUE] RFC: move kernels out of /boot Duncaen
                   ` (2 preceding siblings ...)
  2024-01-09 16:12 ` classabbyamp
@ 2024-01-09 16:13 ` classabbyamp
  2024-01-09 16:13 ` classabbyamp
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: classabbyamp @ 2024-01-09 16:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 614 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/48024#issuecomment-1883347099

Comment:
no it doesn't. this is only for how they are packaged:

> The kernel hooks would then copy the kernels into /boot, users could then change the hooks to i.e. allow to create unified kernel image (UKI) executable without the extra duplication between the UKI file and the package dropped kernel binary.

> Thus /boot stores data that is used before the kernel begins executing user-mode programs. This may include saved master boot sectors and sector map files.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: RFC: move kernels out of /boot
  2024-01-01 22:46 [ISSUE] RFC: move kernels out of /boot Duncaen
                   ` (3 preceding siblings ...)
  2024-01-09 16:13 ` classabbyamp
@ 2024-01-09 16:13 ` classabbyamp
  2024-01-09 16:27 ` mbsmith
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: classabbyamp @ 2024-01-09 16:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 453 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/48024#issuecomment-1883347099

Comment:
no it doesn't. this is only for how they are packaged:

> The kernel hooks would then copy the kernels into /boot, users could then change the hooks to i.e. allow to create unified kernel image (UKI) executable without the extra duplication between the UKI file and the package dropped kernel binary.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: RFC: move kernels out of /boot
  2024-01-01 22:46 [ISSUE] RFC: move kernels out of /boot Duncaen
                   ` (4 preceding siblings ...)
  2024-01-09 16:13 ` classabbyamp
@ 2024-01-09 16:27 ` mbsmith
  2024-01-18 15:13 ` Jipok
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mbsmith @ 2024-01-09 16:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 159 bytes --]

New comment by mbsmith on void-packages repository

https://github.com/void-linux/void-packages/issues/48024#issuecomment-1883343182

Comment:
I'm all for it.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: RFC: move kernels out of /boot
  2024-01-01 22:46 [ISSUE] RFC: move kernels out of /boot Duncaen
                   ` (5 preceding siblings ...)
  2024-01-09 16:27 ` mbsmith
@ 2024-01-18 15:13 ` Jipok
  2024-01-18 15:27 ` Johnnynator
  2024-02-12 14:44 ` CtrlC-Root
  8 siblings, 0 replies; 10+ messages in thread
From: Jipok @ 2024-01-18 15:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 976 bytes --]

New comment by Jipok on void-packages repository

https://github.com/void-linux/void-packages/issues/48024#issuecomment-1898669655

Comment:
I'm glad that at least someone is thinking about solving an important problem(https://github.com/void-linux/void-packages/issues/46006). But getting UKI involved annoying me. Are the goals of this decision even that useful to people? It seemed to me that it was created only to oppress people and the benefits offered are so minimalistic that the quote “Those who are ready to exchange freedom for security are worthy of neither freedom nor security” comes to mind.
UKI gives "Providing a fully verified boot process", that is, bad corporations can prohibit the user from changing the kernel (and, accordingly, the system) as is the case now on Android. And other delights in the form of the inability to boot if you live in the “wrong” country. And also contributes to the implementation of DRM. And vendorlock. LinuxD damn.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: RFC: move kernels out of /boot
  2024-01-01 22:46 [ISSUE] RFC: move kernels out of /boot Duncaen
                   ` (6 preceding siblings ...)
  2024-01-18 15:13 ` Jipok
@ 2024-01-18 15:27 ` Johnnynator
  2024-02-12 14:44 ` CtrlC-Root
  8 siblings, 0 replies; 10+ messages in thread
From: Johnnynator @ 2024-01-18 15:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 976 bytes --]

New comment by Jipok on void-packages repository

https://github.com/void-linux/void-packages/issues/48024#issuecomment-1898669655

Comment:
I'm glad that at least someone is thinking about solving an important problem(https://github.com/void-linux/void-packages/issues/46006). But getting UKI involved annoying me. Are the goals of this decision even that useful to people? It seemed to me that it was created only to oppress people and the benefits offered are so minimalistic that the quote “Those who are ready to exchange freedom for security are worthy of neither freedom nor security” comes to mind.
UKI gives "Providing a fully verified boot process", that is, bad corporations can prohibit the user from changing the kernel (and, accordingly, the system) as is the case now on Android. And other delights in the form of the inability to boot if you live in the “wrong” country. And also contributes to the implementation of DRM. And vendorlock. LinuxD damn.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: RFC: move kernels out of /boot
  2024-01-01 22:46 [ISSUE] RFC: move kernels out of /boot Duncaen
                   ` (7 preceding siblings ...)
  2024-01-18 15:27 ` Johnnynator
@ 2024-02-12 14:44 ` CtrlC-Root
  8 siblings, 0 replies; 10+ messages in thread
From: CtrlC-Root @ 2024-02-12 14:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1415 bytes --]

New comment by CtrlC-Root on void-packages repository

https://github.com/void-linux/void-packages/issues/48024#issuecomment-1938812385

Comment:
I think this would be valuable especially if there is an easy way to make local changes to or extend the hooks in order to implement custom behavior.

Background context:

I have been attempting to use Void Linux on embedded systems with fairly limited disk space. These systems typically have a separate `/boot` partition and one challenge I've run into has been sizing it appropriately; if it's too large you end up wasting precious space but if it's too small you risk breaking system updates (or requiring manual intervention). This is made more complicated by the fact that it's difficult to predict the size of generated initramfs images ahead of time (since they occasionally increase). Right now I have solved this with a script that wraps `xbps-install` and makes sure you end up with the right things in `/boot` (it's not 100% full and it has files necessary to boot) after it's done running. I have seen the warnings printed during `xbps-install` that mention the system may not be bootable due to low disk space in `/boot` but (1) assuming I've sized it appropriately it should be mostly full all of the time and (2) I know what the right thing to do is in my situation and I'd like to have it done automatically so I can run `xbps-install` unattended.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-02-12 14:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-01 22:46 [ISSUE] RFC: move kernels out of /boot Duncaen
2024-01-02 11:22 ` dkwo
2024-01-09 16:10 ` mbsmith
2024-01-09 16:12 ` classabbyamp
2024-01-09 16:13 ` classabbyamp
2024-01-09 16:13 ` classabbyamp
2024-01-09 16:27 ` mbsmith
2024-01-18 15:13 ` Jipok
2024-01-18 15:27 ` Johnnynator
2024-02-12 14:44 ` CtrlC-Root

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).