On Wed, Jun 12, 2013 at 6:08 AM, Stefan G. Weichinger <li...@xunil.at> wrote:
> Am 12.06.2013 13:06, schrieb Stefan G. Weichinger:
>
>> How do you generate your kernel and initramfs with dracut? Any handy
>> scripts available ... any tricks or hints?
>
> Additional fact here:
>
> I boot with grub2 ... so I need to have an initramfs generated that is
> detected by grub2-mkconfig. For now I simply let it use the name of the
> genkernel-initramfs ... how do you handle this?

I use this script to generate my initramfs:

--------------------------------------------------------------------------------
#!/bin/sh

KVER=$(readlink /usr/src/linux | sed "s/^linux-//g")

echo "Creating initrd for kernel version ${KVER}..."

FIRMWARE=""

for i in $(find /lib64/firmware -type f); do
    FIRMWARE+=" ${i}"
done

/usr/bin/dracut -f -H -I "${FIRMWARE}" /boot/initrd-${KVER} ${KVER}
--------------------------------------------------------------------------------

I use this command to generate my GRUB2 config:

grub2-mkconfig -o /boot/grub2/grub.cfg

Everything just works. However, I don't use LVM, and I don't use the
systemd-love overlay.

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México

Reply via email to