From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Daniel Drake <dsd-2X9k7bc8m7Mdnm+yROfE0A@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] Remove modules dependency
Date: Thu, 02 Jul 2009 18:48:04 +0200 [thread overview]
Message-ID: <4A4CE4C4.7020208@redhat.com> (raw)
In-Reply-To: <20090702090615.44C0E9D405C-k/4jFdqg8LLlyo9zxV8I99HuzzzSOjJt@public.gmane.org>
On 07/02/2009 11:06 AM, Daniel Drake wrote:
> This makes it possible to build a dracut initramfs without modules,
> where all needed kernel drivers are built into the kernel image.
> ---
> dracut | 8 +++++---
> modules.d/99base/check | 4 ++--
> 2 files changed, 7 insertions(+), 5 deletions(-)
>
> diff --git a/dracut b/dracut
> index f10af83..6bd2374 100755
> --- a/dracut
> +++ b/dracut
> @@ -135,9 +135,11 @@ echo $mods_to_load
> ## final stuff that has to happen
>
> # generate module dependencies for the initrd
> -if ! /sbin/depmod -a -b "$initdir" $kernel; then
> - echo "\"/sbin/depmod -a $kernel\" failed."
> - exit 1
> +if [ -d "$initdir/lib/modules/$kernel" ]; then
> + if ! /sbin/depmod -a -b "$initdir" $kernel; then
> + echo "\"/sbin/depmod -a $kernel\" failed."
> + exit 1
> + fi
> fi
>
> # make sure that library links are correct and up to date
> diff --git a/modules.d/99base/check b/modules.d/99base/check
> index 5c3bc51..1128497 100755
> --- a/modules.d/99base/check
> +++ b/modules.d/99base/check
> @@ -1,3 +1,3 @@
> #!/bin/bash
> -[[ $1 = -d ]]&& echo udev-rules kernel-modules
> -exit 0
> \ No newline at end of file
> +[[ $1 = -d ]]&& echo udev-rules
> +exit 0
pushed
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2009-07-02 16:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-02 9:06 [PATCH] Remove modules dependency Daniel Drake
[not found] ` <20090702090615.44C0E9D405C-k/4jFdqg8LLlyo9zxV8I99HuzzzSOjJt@public.gmane.org>
2009-07-02 16:47 ` Harald Hoyer
2009-07-02 16:48 ` Harald Hoyer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A4CE4C4.7020208@redhat.com \
--to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=dsd-2X9k7bc8m7Mdnm+yROfE0A@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox