mkinitrd unification across distributions
 help / color / mirror / Atom feed
From: Maarten Vanraes <maarten.vanraes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: patches
Date: Mon, 26 Jul 2010 09:58:44 +0200	[thread overview]
Message-ID: <201007260958.44928.maarten.vanraes@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 58 bytes --]

Hi,

another small patch.

Kind regards,

Maarten Vanraes

[-- Attachment #2: 0004-not-remove-unloaded-modules.patch --]
[-- Type: text/x-patch, Size: 1592 bytes --]

From 4ef6f01f12874dde73025e890b012d443b355766 Mon Sep 17 00:00:00 2001
From: Maarten Vanraes <maarten.vanraes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Date: Mon, 26 Jul 2010 09:49:06 +0200
Subject: [PATCH 4/4] not remove unloaded modules

Currently unloaded kernel modules can't be removed, because this would
break kernel module renames or newer modules for certain hardware, this
also has problems for chrooted installs.

Signed-off-by: Maarten Vanraes <maarten.vanraes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 dracut-functions |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/dracut-functions b/dracut-functions
index be6b2e9..47a958d 100755
--- a/dracut-functions
+++ b/dracut-functions
@@ -607,10 +607,13 @@ instmods() {
 	        [[ -f $initdir/$1 ]] && { shift; continue; }
 		# If we are building a host-specific initramfs and this
 		# module is not already loaded, move on to the next one.
-		[[ $hostonly ]] && ! grep -q "${mod//-/_}" /proc/modules && \
-	        ! echo $add_drivers | grep -qe "\<${mod}\>" &&	{
-		    shift; continue; 
-		}
+		# NOTE: This is not desirable, if a new kernel has a renamed
+		# module or it has a new module with better support, that module
+		# won't be used here.
+		#[[ $hostonly ]] && ! grep -q "${mod//-/_}" /proc/modules && \
+	        #! echo $add_drivers | grep -qe "\<${mod}\>" &&	{
+		#    shift; continue; 
+		#}
 
 		# We use '-d' option in modprobe only if modules prefix path
 		# differs from default '/'.  This allows us to use Dracut with
-- 
1.6.4.4


             reply	other threads:[~2010-07-26  7:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-26  7:58 Maarten Vanraes [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-07-14  0:05 patches Maarten Vanraes
     [not found] ` <201007140205.35944.maarten.vanraes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-07-21 11:33   ` patches Harald Hoyer
     [not found]     ` <4C46DAF1.1090603-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-07-21 15:18       ` patches Maarten Vanraes
     [not found]         ` <201007211718.28574.maarten.vanraes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-07-26  7:42           ` patches Maarten Vanraes
2010-07-21 11:41   ` patches Harald Hoyer
     [not found]     ` <4C46DCD0.3020608-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-07-21 15:03       ` patches Maarten Vanraes
     [not found]         ` <201007211703.36797.maarten.vanraes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-07-21 15:13           ` patches Harald Hoyer
     [not found]             ` <4C470EAD.705-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-07-21 15:20               ` patches Maarten Vanraes

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=201007260958.44928.maarten.vanraes@gmail.com \
    --to=maarten.vanraes-re5jqeeqqe8avxtiumwx3w@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