Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 823467 - genkernel does not put the initramfs in the same place as the kernel
Summary: genkernel does not put the initramfs in the same place as the kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-13 00:05 UTC by Anthony Youngman
Modified: 2021-11-13 12:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Youngman 2021-11-13 00:05:34 UTC
When I run "make install", the kernel is installed to my CURRENT /boot

When I run "genkernel initramfs", it searches my fstab and automounts a completely different /boot, stashes the initramfs there, and then unmounts /boot.

So grub-mkconfig then screws up because the kernel and matching initramfs are in two completely different places. AND I DIDN'T DO ANYTHING TO /BOOT !!!


(This is on top of my other gripe with genkernel - it creates an initramfs for the currently selected kernel, not the new kernel you're building - this has screwed me over a couple of times)

(The reason for doing this is I have ONE logical disk, so I can only have one grub, and I have multiple linuxes in lvm partitions. I DON'T WANT ANY DISTRO mucking about with the master boot - SUSE auto-updated and left me needing to patch grub.cfg in the systemd recovery console because it completely fucked every option. Now gentoo is trying to be clever and leaving me with a fucked up grub.cfg that won't boot gentoo because there's no initramfs!)
Comment 1 Anthony Youngman 2021-11-13 12:13:11 UTC
Discovered various genkernel options that enable getting round it.