You are not logged in.

#1 2013-05-30 19:59:14

Dornith
Member
Registered: 2013-02-19
Posts: 78

[SOLVED] How to designate where to put new kernels?

I'm about to install a new distro on my computer, and I decided I wanted the two distros to share a /boot partition.  But, to keep different elements of each from conflicting, I wanted to separate them into folders.  I've already move my archlinux kernel into /boot/arch, along with it's images, reconfigured GRUB, and have successfully booted with the new location, but I'm worried that the next time I upgrade my kernel it won't go to the new directory.
How can I make sure my system will always put kernels in a specific spot?

Last edited by Dornith (2013-06-01 21:41:09)

Offline

#2 2013-05-30 20:04:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] How to designate where to put new kernels?

You can simply move them after kernel update.

Otherwise I think you would have to use ABS and edit the presets https://projects.archlinux.org/svntogit … ages/linux

Offline

#3 2013-05-30 20:16:05

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] How to designate where to put new kernels?

Maybe you can mount the shared boot partition somewhere else and use a symlink or bind mount so that Arch's /boot points to the "arch" directory on the shared partition. That way new kernels end up in the right place and as long as grub is configured correctly I think it should work (not entirely sure since I haven't used grub for quite some time).

Offline

#4 2013-05-30 20:27:29

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,858
Website

Re: [SOLVED] How to designate where to put new kernels?

Raynman wrote:

Maybe you can mount the shared boot partition somewhere else and use a symlink or bind mount so that Arch's /boot points to the "arch" directory on the shared partition. That way new kernels end up in the right place

This is what I'd do.


...In fact, it is what I do. Though I use rEFInd, not grub, but that shouldn't make any difference.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2013-05-30 22:34:36

Dornith
Member
Registered: 2013-02-19
Posts: 78

Re: [SOLVED] How to designate where to put new kernels?

Thanks for the replies.
I created another directory, and edited fstab to mount what was my /boot in a separate directory, but I can't find the archlinux init scripts.  Where would I add the symlink?

Offline

#6 2013-05-31 03:34:34

fschiff
Member
Registered: 2011-10-06
Posts: 71

Re: [SOLVED] How to designate where to put new kernels?

The UEFI wiki article has a couple solutions for how to automagically copy the boot files to your UEFI partition.  You could repurpose them to have different names/locations for your multiple kernels.

Offline

#7 2013-05-31 15:00:36

Dornith
Member
Registered: 2013-02-19
Posts: 78

Re: [SOLVED] How to designate where to put new kernels?

fschiff wrote:

The UEFI wiki article has a couple solutions for how to automagically copy the boot files to your UEFI partition.

I don't have a UEFI, I have a BIOS.

Offline

#8 2013-06-01 02:27:23

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: [SOLVED] How to designate where to put new kernels?

Dornith wrote:
fschiff wrote:

The UEFI wiki article has a couple solutions for how to automagically copy the boot files to your UEFI partition.

I don't have a UEFI, I have a BIOS.

That doesn't matter. The solutions aren't UEFI-specific. It is just that UEFI users often need to move kernels automagically in order to boot so that is where the solutions to this sort of problem are in the wiki. They'll work just as well for non-UEFI booting. They just e.g. use systemd to move stuff.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#9 2013-06-01 21:40:53

Dornith
Member
Registered: 2013-02-19
Posts: 78

Re: [SOLVED] How to designate where to put new kernels?

Thanks, I managed to find it.  I hadn't checked UEFI bootloaders when I last posted and managed to find it there. 
So now I just have my partition mounted at the root and have the system move the kernel once it's done building.

If anyone else has this problem, here's the link: https://wiki.archlinux.org/index.php/UEFI_Bootloaders

Offline

Board footer

Powered by FluxBB