Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 408691 - Add information on initramfs in installation instructions
Summary: Add information on initramfs in installation instructions
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 407959
  Show dependency tree
 
Reported: 2012-03-18 10:02 UTC by Sven Vermeulen (RETIRED)
Modified: 2012-03-28 17:58 UTC (History)
4 users (show)

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


Attachments
Patch for kernel configuration (hb-install-x86+amd64-kernel.patch,1.73 KB, patch)
2012-03-18 10:03 UTC, Sven Vermeulen (RETIRED)
Details | Diff
Patch for bootloader configuration (hb-install-x86+amd64-bootloader.patch,4.68 KB, patch)
2012-03-18 10:04 UTC, Sven Vermeulen (RETIRED)
Details | Diff
Patch for kernel configuration (hb-install-x86+amd64-kernel.patch,2.31 KB, patch)
2012-03-25 17:31 UTC, Sven Vermeulen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Vermeulen (RETIRED) gentoo-dev 2012-03-18 10:02:01 UTC
The attached patches add information on how to build (and why to build) an initramfs. It also "optimizes" the bootloader configuration a bit (as we now do not need separate configurations for genkernel/non-genkernel anymore).

First set of patches are x86/amd64 only, but we need information on how to deal with initramfs on other platforms (as far as this isn't done yet).

Reproducible: Always
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2012-03-18 10:03:31 UTC
Created attachment 305785 [details, diff]
Patch for kernel configuration
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2012-03-18 10:04:03 UTC
Created attachment 305787 [details, diff]
Patch for bootloader configuration
Comment 3 Dennis Schridde 2012-03-21 10:36:24 UTC
I am using sys-kernel/dracut-017-r1 to generate the initramfs, which works pretty nicely. sys-boot/grub-2.00_beta2-r1 will pickup the generated file automatically, without further configuration.

Posting the content of some files in case this is interesting for documentation:

== /etc/kernel/postinst.d/01_dracut ==
#!/bin/sh
version=$1
image=$2
exec dracut --xz --force '' "$version"

== /etc/portage/make.conf ==
...
DRACUT_MODULES="btrfs"

If there is interest I can also share a short custom /init (incl. resume, lvm and root=UUID/LABEL support), which I used before switching to dracut.
Comment 4 nm (RETIRED) gentoo-dev 2012-03-21 11:16:40 UTC
dracut and all the other stuff needs to actually be marked stable before we can push this to the docs.

grub2 is a whole other document waiting to happen -- it's nowhere near coming out of hardmask, so we don't need to even consider it.
Comment 5 Sven Vermeulen (RETIRED) gentoo-dev 2012-03-22 17:32:41 UTC
AxS mentioned that "genkernel --install initramfs" might be sufficient as well, even though you don't use genkernel for kernel building. Trying that out now.
Comment 6 Sven Vermeulen (RETIRED) gentoo-dev 2012-03-25 17:31:24 UTC
Created attachment 306623 [details, diff]
Patch for kernel configuration

Updates hb-install-x86+amd64-kernel.xml, now only uses genkernel to build the initramfs.
Comment 7 Sven Vermeulen (RETIRED) gentoo-dev 2012-03-27 17:48:39 UTC
Patch committed