* [ISSUE] RFC: move kernels out of /boot
@ 2024-01-01 22:46 Duncaen
2024-01-02 11:22 ` dkwo
` (15 more replies)
0 siblings, 16 replies; 17+ 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] 17+ 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
` (14 subsequent siblings)
15 siblings, 0 replies; 17+ 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] 17+ 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
` (13 subsequent siblings)
15 siblings, 0 replies; 17+ 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] 17+ 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
` (12 subsequent siblings)
15 siblings, 0 replies; 17+ 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] 17+ 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
` (11 subsequent siblings)
15 siblings, 0 replies; 17+ 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] 17+ 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
` (10 subsequent siblings)
15 siblings, 0 replies; 17+ 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] 17+ 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
` (9 subsequent siblings)
15 siblings, 0 replies; 17+ 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] 17+ 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
` (8 subsequent siblings)
15 siblings, 0 replies; 17+ 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] 17+ 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
` (7 subsequent siblings)
15 siblings, 0 replies; 17+ 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] 17+ 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
2024-05-13 1:47 ` github-actions
` (6 subsequent siblings)
15 siblings, 0 replies; 17+ 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] 17+ messages in thread
* Re: RFC: move kernels out of /boot
2024-01-01 22:46 [ISSUE] RFC: move kernels out of /boot Duncaen
` (8 preceding siblings ...)
2024-02-12 14:44 ` CtrlC-Root
@ 2024-05-13 1:47 ` github-actions
2024-05-13 1:48 ` CtrlC-Root
` (5 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: github-actions @ 2024-05-13 1:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 293 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/issues/48024#issuecomment-2106490916
Comment:
Issues become stale 90 days after last activity and are closed 14 days after that. If this issue is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: RFC: move kernels out of /boot
2024-01-01 22:46 [ISSUE] RFC: move kernels out of /boot Duncaen
` (9 preceding siblings ...)
2024-05-13 1:47 ` github-actions
@ 2024-05-13 1:48 ` CtrlC-Root
2024-06-24 10:26 ` dkwo
` (4 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: CtrlC-Root @ 2024-05-13 1:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 394 bytes --]
New comment by CtrlC-Root on void-packages repository
https://github.com/void-linux/void-packages/issues/48024#issuecomment-2106492817
Comment:
I think this is still valuable. I have several systems where I regularly have to make sure to never have more than two kernels (i.e. upgrade, reboot, and then vkpurge) in order to make sure I don't exceed the space allocated to the boot partition.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: RFC: move kernels out of /boot
2024-01-01 22:46 [ISSUE] RFC: move kernels out of /boot Duncaen
` (10 preceding siblings ...)
2024-05-13 1:48 ` CtrlC-Root
@ 2024-06-24 10:26 ` dkwo
2024-07-18 17:39 ` dkwo
` (3 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: dkwo @ 2024-06-24 10:26 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 549 bytes --]
New comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/issues/48024#issuecomment-2186213349
Comment:
Quick question: what is the consensus about a place for config and sysmap, currently also in boot
```
vinstall .config 644 boot config-${_kernver}
vinstall System.map 644 boot System.map-${_kernver}
```
as well as device trees (for the archs that have them), e.g. `INSTALL_DTBS_PATH=${DESTDIR}/boot/dtbs/dtbs-${_kernver}`?
This just is in case I want to start experimenting with the asahi linux kernel.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: RFC: move kernels out of /boot
2024-01-01 22:46 [ISSUE] RFC: move kernels out of /boot Duncaen
` (11 preceding siblings ...)
2024-06-24 10:26 ` dkwo
@ 2024-07-18 17:39 ` dkwo
2024-07-18 17:43 ` Duncaen
` (2 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: dkwo @ 2024-07-18 17:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 243 bytes --]
New comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/issues/48024#issuecomment-2237146962
Comment:
As a good byproduct, it should become not necessary anymore to set `preserve=yes` in kernel templates.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: RFC: move kernels out of /boot
2024-01-01 22:46 [ISSUE] RFC: move kernels out of /boot Duncaen
` (12 preceding siblings ...)
2024-07-18 17:39 ` dkwo
@ 2024-07-18 17:43 ` Duncaen
2024-07-18 17:43 ` Duncaen
2024-11-19 14:42 ` Jipok
15 siblings, 0 replies; 17+ messages in thread
From: Duncaen @ 2024-07-18 17:43 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 332 bytes --]
New comment by Duncaen on void-packages repository
https://github.com/void-linux/void-packages/issues/48024#issuecomment-2237151748
Comment:
No `preserve=yes` just makes xbps not remove any files on update, we still need this to not delete modules out of a kernel that might be currently running or might be otherwise used later.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: RFC: move kernels out of /boot
2024-01-01 22:46 [ISSUE] RFC: move kernels out of /boot Duncaen
` (13 preceding siblings ...)
2024-07-18 17:43 ` Duncaen
@ 2024-07-18 17:43 ` Duncaen
2024-11-19 14:42 ` Jipok
15 siblings, 0 replies; 17+ messages in thread
From: Duncaen @ 2024-07-18 17:43 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 283 bytes --]
New comment by Duncaen on void-packages repository
https://github.com/void-linux/void-packages/issues/48024#issuecomment-2237151748
Comment:
No `preserve=yes` just makes xbps not remove any files on update, we still need this to not delete modules from the current or old kernels.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: RFC: move kernels out of /boot
2024-01-01 22:46 [ISSUE] RFC: move kernels out of /boot Duncaen
` (14 preceding siblings ...)
2024-07-18 17:43 ` Duncaen
@ 2024-11-19 14:42 ` Jipok
15 siblings, 0 replies; 17+ messages in thread
From: Jipok @ 2024-11-19 14:42 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] 17+ messages in thread
end of thread, other threads:[~2024-11-19 14:42 UTC | newest]
Thread overview: 17+ 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
2024-05-13 1:47 ` github-actions
2024-05-13 1:48 ` CtrlC-Root
2024-06-24 10:26 ` dkwo
2024-07-18 17:39 ` dkwo
2024-07-18 17:43 ` Duncaen
2024-07-18 17:43 ` Duncaen
2024-11-19 14:42 ` Jipok
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).