You are not logged in.

#1 2024-03-28 03:00:32

kindusmith
Member
Registered: 2019-12-30
Posts: 16

[SOLVED]Why the Linux can't put the kernel image into /boot/kernel

Why the Linux can't put the kernel image vmlinuz and initrd into /boot/kernel instead of /boot? This is much better than the current chaos. In addition, I don't like grub, why don't make one that is really bootloader used by Linux ? Put it in the /boot/loader directory, and only bootloader files are stored in it?

Last edited by kindusmith (2024-03-28 11:11:37)

Offline

#2 2024-03-28 03:05:42

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,119

Re: [SOLVED]Why the Linux can't put the kernel image into /boot/kernel

I have no idea what you're talking about. Why is putting it in /boot chaos? And what does "why don't make one that is really bootloader used by Linux" mean?

Offline

#3 2024-03-28 05:20:12

kindusmith
Member
Registered: 2019-12-30
Posts: 16

Re: [SOLVED]Why the Linux can't put the kernel image into /boot/kernel

Wouldn't it be good idea put kernel files such as vmlinuz and initrd into /boot/kernel?  only stores bootloader files in /boot/loader. Now /boot/ contains both vmlinuz and grub (bootloader), which feels very confusing.

Offline

#4 2024-03-28 07:53:36

seth
Member
Registered: 2012-09-03
Posts: 59,039

Re: [SOLVED]Why the Linux can't put the kernel image into /boot/kernel

So instead of a kernel file in /boot you're gonna have a kernel directory in /boot and that will totally unconfuse you?

https://en.wikipedia.org/wiki/XY_problem - are you short on space on your boot partition?

Offline

#5 2024-03-28 08:00:39

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,116
Website

Re: [SOLVED]Why the Linux can't put the kernel image into /boot/kernel

A lot of the FHS is historic. The original purpose of /boot was to contain files that are necessary for booting, duh!
It is certainly possible to put the kernel images and initramfs into /boot/kernel, e.g. on EFI systems if the ESP is mounted to /boot/kernel and you use EFISTUB to load the kernel directly.
But this may clash with some other programs, such as fwupdmgr, which assume the ESP under /boot or /boot/efi per default.
Other places where the nomenclature might confuse people without the historic knowledge of the FHS is /bin. Nowadays it mostly, if not exclusively, contains executable programs, so maybe it's time to rename it to /exe - POSIX is dead anyways tongue.


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#6 2024-03-28 08:21:36

seth
Member
Registered: 2012-09-03
Posts: 59,039

Re: [SOLVED]Why the Linux can't put the kernel image into /boot/kernel

W/ grub you can put kernel and initramfs pretty much anywhere - you just have to tell grub where to look.

Offline

#7 2024-03-28 08:31:00

Fuxino
Member
From: Slovakia
Registered: 2014-09-26
Posts: 197

Re: [SOLVED]Why the Linux can't put the kernel image into /boot/kernel

kindusmith wrote:

In addition, I don't like grub

Then don't use grub? There are many alternatives: https://wiki.archlinux.org/title/Arch_b … oot_loader


Arch + XMonad

Dotfiles: https://github.com/Fuxino/dotfiles

Offline

#8 2024-03-28 11:10:27

kindusmith
Member
Registered: 2019-12-30
Posts: 16

Re: [SOLVED]Why the Linux can't put the kernel image into /boot/kernel

Okay, I understand, thank you for your answer

Offline

#9 2024-03-28 14:38:46

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,339
Website

Re: [SOLVED]Why the Linux can't put the kernel image into /boot/kernel

To make GRUB use a different directory pass the --boot-directory option to the grub-install command with the desired path.


Para todos todo, para nosotros nada

Offline

Board footer

Powered by FluxBB