Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] dracut vs. genkernel
Date: Wed, 12 Jun 2013 15:53:58
Message-Id: CADPrc82xZHwCNn4mk=xVsEz1PFoBqouDrLsJmCsupyMdKyFwTQ@mail.gmail.com
In Reply to: Re: [gentoo-user] dracut vs. genkernel by "Stefan G. Weichinger"
1 On Wed, Jun 12, 2013 at 6:08 AM, Stefan G. Weichinger <lists@×××××.at> wrote:
2 > Am 12.06.2013 13:06, schrieb Stefan G. Weichinger:
3 >
4 >> How do you generate your kernel and initramfs with dracut? Any handy
5 >> scripts available ... any tricks or hints?
6 >
7 > Additional fact here:
8 >
9 > I boot with grub2 ... so I need to have an initramfs generated that is
10 > detected by grub2-mkconfig. For now I simply let it use the name of the
11 > genkernel-initramfs ... how do you handle this?
12
13 I use this script to generate my initramfs:
14
15 --------------------------------------------------------------------------------
16 #!/bin/sh
17
18 KVER=$(readlink /usr/src/linux | sed "s/^linux-//g")
19
20 echo "Creating initrd for kernel version ${KVER}..."
21
22 FIRMWARE=""
23
24 for i in $(find /lib64/firmware -type f); do
25 FIRMWARE+=" ${i}"
26 done
27
28 /usr/bin/dracut -f -H -I "${FIRMWARE}" /boot/initrd-${KVER} ${KVER}
29 --------------------------------------------------------------------------------
30
31 I use this command to generate my GRUB2 config:
32
33 grub2-mkconfig -o /boot/grub2/grub.cfg
34
35 Everything just works. However, I don't use LVM, and I don't use the
36 systemd-love overlay.
37
38 Regards.
39 --
40 Canek Peláez Valdés
41 Posgrado en Ciencia e Ingeniería de la Computación
42 Universidad Nacional Autónoma de México

Replies

Subject Author
Re: [gentoo-user] dracut vs. genkernel "Stefan G. Weichinger" <lists@×××××.at>