You are not logged in.
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
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
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
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
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
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
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
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
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