Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

How to stop installkernel from making an initramfs?

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
ExecutorElassus
Veteran
Veteran
User avatar
Posts: 1526
Joined: Thu Mar 11, 2004 11:12 pm
Location: Berlin, Germany

How to stop installkernel from making an initramfs?

  • Quote

Post by ExecutorElassus » Wed Jan 31, 2024 2:06 pm

So, I understand installkernel recently changed its behavior to install and use dracut. Prior to this, the way I've installed a kernel was this:

Code: Select all

/usr/src/linux # make -j17 && make -j17 modules_install
# make install
# genkernel --lvm --mdadm --kernel-config=/usr/src/linux/.config initramfs
# nano /boot/grub/grub.cfg % (to manually edit the grub file to point to the new files)
I've disabled dracut through the USE flag. Now, however, the second command still puts an initramfs file into /boot, which I do not want. How do I stop it from doing this?

Cheers,

EE
Top
Nowa
Developer
Developer
User avatar
Posts: 522
Joined: Wed Jun 25, 2014 7:07 am
Location: Hilversum

Re: How to stop installkernel from making an initramfs?

  • Quote

Post by Nowa » Wed Jan 31, 2024 2:57 pm

ExecutorElassus wrote: I've disabled dracut through the USE flag. Now, however, the second command still puts an initramfs file into /boot, which I do not want. How do I stop it from doing this?
Which version of dracut and which version of installkernel? With the latest versions of both no initramfs should be generated if the dracut flag is disabled.

Of course, removing the dracut package will also work.
OS: Gentoo 6.19.3-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400
Top
ExecutorElassus
Veteran
Veteran
User avatar
Posts: 1526
Joined: Thu Mar 11, 2004 11:12 pm
Location: Berlin, Germany

  • Quote

Post by ExecutorElassus » Wed Jan 31, 2024 3:24 pm

On the initial run I was using installkernel-16. Then I added "-dracut" to its USE, and emerged installkernel-19 and unmerged dracut. I don't know which version it was. But after that, running `make install` still placed an initramfs file on /boot.

Are you saying that should no longer happen with my system as it's now configured?

Cheers,

EE
Top
Nowa
Developer
Developer
User avatar
Posts: 522
Joined: Wed Jun 25, 2014 7:07 am
Location: Hilversum

  • Quote

Post by Nowa » Wed Jan 31, 2024 4:44 pm

ExecutorElassus wrote:Are you saying that should no longer happen with my system as it's now configured?
Dracut is not on your system but you still end up with an initramfs in /boot?

Either something else is generating one (unlikely), or you still have a left over initrd file at /usr/src/linux-x.y.z/arch/x86/boot/initrd (or equivalent for your architecture).

Unfortunately the traditional installkernel (USE=-systemd) generates it at the same place as the kernel image, so if you drop initramfs generation (i.e. set USE=-dracut) this file will still be left behind and it will still get picked up by the main installkernel script. It's an annoyance in the original design that I don't think we can get rid of without breaking things elsewhere. Systemd's kernel-install (USE=+systemd) is a bit better in this regard in the sense that it will never alter the kernel source tree.
OS: Gentoo 6.19.3-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400
Top
Post Reply

4 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic