From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 595551381F3 for ; Wed, 12 Jun 2013 15:53:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 64BA5E09C4; Wed, 12 Jun 2013 15:53:48 +0000 (UTC) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 06A2EE0996 for ; Wed, 12 Jun 2013 15:53:46 +0000 (UTC) Received: by mail-lb0-f171.google.com with SMTP id 13so5521912lba.16 for ; Wed, 12 Jun 2013 08:53:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=jSLgU8wvnY5I3O0q5HB4WpJZaeeFjx8CWuq1l2O1Py8=; b=obo9iyYw427TACEstA8BttOOl+sDU56jxbWXXTc+W2WvU3nZTXGVVUBCq0ErXzqx+N 5fyZKxam/451rx8tyRqG8mg2edxg6Rn5cpOh/c5ZPcQF6eHOYuxdHLYpBmBJt2ECr6P+ cW+t4os7V7VjOYAhnOeMntjEtc5xG+fdsIwkE324AI5bZOZSvsqMxwNuTY0od/lqYDkL 6z+rCYwJGWhT/9MjETrWYGU3B7+2+eodHTctpfKBPEk1imMkkyrqlJg7BSxnIevRvXcS 24XW2+datEOM6xd/3j6HxRnElkVhTJb4m+iKhGnzzmu96rmzm7534hE6FHYbROz4whgP gV9A== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.152.21.194 with SMTP id x2mr5785247lae.9.1371052425181; Wed, 12 Jun 2013 08:53:45 -0700 (PDT) Received: by 10.114.75.72 with HTTP; Wed, 12 Jun 2013 08:53:45 -0700 (PDT) In-Reply-To: <51B856BC.2000105@xunil.at> References: <51B85652.1040702@xunil.at> <51B856BC.2000105@xunil.at> Date: Wed, 12 Jun 2013 10:53:45 -0500 Message-ID: Subject: Re: [gentoo-user] dracut vs. genkernel From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 31cdf3a9-8822-4146-a200-b19e3a6dfab8 X-Archives-Hash: b2d3cbb9c85d80a7f87e2e46da7ada7d On Wed, Jun 12, 2013 at 6:08 AM, Stefan G. Weichinger wrot= e: > 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=3D$(readlink /usr/src/linux | sed "s/^linux-//g") echo "Creating initrd for kernel version ${KVER}..." FIRMWARE=3D"" for i in $(find /lib64/firmware -type f); do FIRMWARE+=3D" ${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=C3=A1ez Vald=C3=A9s Posgrado en Ciencia e Ingenier=C3=ADa de la Computaci=C3=B3n Universidad Nacional Aut=C3=B3noma de M=C3=A9xico