public inbox for initramfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dracut-systemd: ensure grep is installed as needed by rootfs-generator
@ 2015-04-09  4:08 NeilBrown
       [not found] ` <20150409140840.0bb6d59d-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
  2015-10-12  3:02 ` dracut is too "clever" at identifying modules to exclude Neil Brown
  0 siblings, 2 replies; 9+ messages in thread
From: NeilBrown @ 2015-04-09  4:08 UTC (permalink / raw)
  To: Harald Hoyer; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA

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



rootfs-generator uses 'grep', but it is not installed in the initramfs
by default.
So explicitly install it when installing rootfs-generator.sh

Signed-off-by: NeilBrown <neilb-l3A5Bk7waGM@public.gmane.org>

diff --git a/modules.d/98dracut-systemd/module-setup.sh b/modules.d/98dracut-systemd/module-setup.sh
index d9175573c777..780b39a2b4a1 100755
--- a/modules.d/98dracut-systemd/module-setup.sh
+++ b/modules.d/98dracut-systemd/module-setup.sh
@@ -41,6 +41,7 @@ install() {
     inst_script "$moddir/dracut-mount.sh" /bin/dracut-mount
     inst_script "$moddir/dracut-pre-pivot.sh" /bin/dracut-pre-pivot
 
+    inst_multiple grep
     inst_script "$moddir/rootfs-generator.sh" $systemdutildir/system-generators/dracut-rootfs-generator
 
     for i in \

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 811 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] dracut-systemd: ensure grep is installed as needed by rootfs-generator
       [not found] ` <20150409140840.0bb6d59d-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
@ 2015-04-21 14:38   ` Harald Hoyer
       [not found]     ` <553660CE.7090509-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Harald Hoyer @ 2015-04-21 14:38 UTC (permalink / raw)
  To: NeilBrown; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 09.04.2015 06:08, NeilBrown wrote:
> 
> 
> rootfs-generator uses 'grep', but it is not installed in the initramfs by 
> default. So explicitly install it when installing rootfs-generator.sh
> 
> Signed-off-by: NeilBrown <neilb-l3A5Bk7waGM@public.gmane.org>
> 
> diff --git a/modules.d/98dracut-systemd/module-setup.sh 
> b/modules.d/98dracut-systemd/module-setup.sh index 
> d9175573c777..780b39a2b4a1 100755 --- 
> a/modules.d/98dracut-systemd/module-setup.sh +++ 
> b/modules.d/98dracut-systemd/module-setup.sh @@ -41,6 +41,7 @@ install() {
> inst_script "$moddir/dracut-mount.sh" /bin/dracut-mount inst_script 
> "$moddir/dracut-pre-pivot.sh" /bin/dracut-pre-pivot
> 
> +    inst_multiple grep inst_script "$moddir/rootfs-generator.sh" 
> $systemdutildir/system-generators/dracut-rootfs-generator
> 
> for i in \
> 

I removed the usage of "grep" from  rootfs-generator.sh for this simple case
of finding a string in a small file.

<http://git.kernel.org/cgit/boot/dracut/dracut.git/commit/?id=d3d52b20e9374a6553c7a6cbe9ff0a9e08df10f9>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJVNmDKAAoJEANOs3ABTfJwBKkQAJw1LBHJmY9K/7bOYcO5e/ay
KPFignkvBBkimRewfPViKP1kRBW5Vj678sSQLEWrdXf21XUPnu4y1i6Elz0R7qzq
efXs0MsuI13WVXi8nuQ4UPeqvNicMkA8QWfbuQEO0isoTRjs00lz56G9noKbAAJV
vO1tu1TmroKp2IsaUkZTC6AzvYs2aS0kEfk45F6L09jsi0BXztLCF3ud4xpsw0LR
LTBGEkH4MzluDPxxZijGHGTXuuB1o73/t8L83qTtoi7xLnq6RimBdt+XTNW7khv3
q2X3wVyBzO2yW3H5aOMgU2UqfnVgzE0VXljUqUiLi34jIBkO17HPqKM+J25d2WL+
Sz2p3tRbwmxPEmTZurxDiJN9f0A/vV0xldAF0Gbbjm8tEUSLhD2GDjCiLgaSyjtb
KGEiQK5ZYtcE1u7Jxa0r8QuPeulJuM6CPx7xvAbyVWATJ97+LjvGfmAC78Xq3bXx
ftHPWy8v9WsVv4REhza6bAuRexF20Gs59t/Kg7O/Rmp2ZXp9ElMwlhjmos/BmZCr
q8oNyPfNo7/YUkI2tV+raKXuzhwZKWwp2E2soaUr3E9u0ZGaorS4Fwv3VmFNe/rK
KAxVSJJ4hQDKEGL+k/vEW/3olnxkNT77aB4xIgX+mhDkMhayGfo5/tyrTHoUrihN
Bwg8TjLCoW/dO7XOCIFq
=iT9u
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] dracut-systemd: ensure grep is installed as needed by rootfs-generator
       [not found]     ` <553660CE.7090509-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2015-04-21 23:47       ` NeilBrown
  0 siblings, 0 replies; 9+ messages in thread
From: NeilBrown @ 2015-04-21 23:47 UTC (permalink / raw)
  To: Harald Hoyer; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA

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

On Tue, 21 Apr 2015 16:38:06 +0200 Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> On 09.04.2015 06:08, NeilBrown wrote:
> > 
> > 
> > rootfs-generator uses 'grep', but it is not installed in the initramfs by 
> > default. So explicitly install it when installing rootfs-generator.sh
> > 
> > Signed-off-by: NeilBrown <neilb-l3A5Bk7waGM@public.gmane.org>
> > 
> > diff --git a/modules.d/98dracut-systemd/module-setup.sh 
> > b/modules.d/98dracut-systemd/module-setup.sh index 
> > d9175573c777..780b39a2b4a1 100755 --- 
> > a/modules.d/98dracut-systemd/module-setup.sh +++ 
> > b/modules.d/98dracut-systemd/module-setup.sh @@ -41,6 +41,7 @@ install() {
> > inst_script "$moddir/dracut-mount.sh" /bin/dracut-mount inst_script 
> > "$moddir/dracut-pre-pivot.sh" /bin/dracut-pre-pivot
> > 
> > +    inst_multiple grep inst_script "$moddir/rootfs-generator.sh" 
> > $systemdutildir/system-generators/dracut-rootfs-generator
> > 
> > for i in \
> > 
> 
> I removed the usage of "grep" from  rootfs-generator.sh for this simple case
> of finding a string in a small file.
> 
> <http://git.kernel.org/cgit/boot/dracut/dracut.git/commit/?id=d3d52b20e9374a6553c7a6cbe9ff0a9e08df10f9>

Just as good.  Thanks.

NeilBrown

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 811 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* dracut is too "clever" at identifying modules to exclude.
  2015-04-09  4:08 [PATCH] dracut-systemd: ensure grep is installed as needed by rootfs-generator NeilBrown
       [not found] ` <20150409140840.0bb6d59d-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
@ 2015-10-12  3:02 ` Neil Brown
       [not found]   ` <87r3l023ha.fsf-wvvUuzkyo1HefUI2i7LXDhCRmIWqnp/j@public.gmane.org>
  1 sibling, 1 reply; 9+ messages in thread
From: Neil Brown @ 2015-10-12  3:02 UTC (permalink / raw)
  To: Harald Hoyer, trenn-IBi9RG/b67k; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA

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


If I have booted a kernel with md/raid built in (no modules) and
I use dracut to build the initramfs for a different kernel which
has the md code compiled as separate modules, then it does not include
the required md modules in the initramfs.

As a particular instance this happen when the root filesystem is on
RAID0.  The 'raid0.ko' module is not included and boot fails.

https://bugzilla.opensuse.org/show_bug.cgi?id=935993

This only happens when 'host-only' is selected (which is the default for
openSUSE).

the modules.d/90mdraid/module-setup.sh code calls

    instmods =drivers/md

instmods calls
   module_is_host_only "raid0"
and this incorrectly fails.

If raid0.ko didn't have any alias this would succeed, but it does.

$ modinfo -F alias raid0
md-level-0
md-raid0
md-personality-2

However these aliases don't appear in any modalias file in /sys/devices,
in /proc/crypto, or in /proc/modules.

Maybe you could parse /proc/mdstat..

if [ -f /proc/mdstat ]; then
  while read _d _c _a _m _x; do
   if [ "$_c" = ':' -a "$_a" = 'active' ]; then
      host_modalias["md-$_m"]=1
   fi
  done < /proc/mdstat
fi

but it all seems rather fragile.  There are probably other modules that
might miss out accidentally. dm?

Do we really need the host_modalias stuff?

Thanks,
NeilBrown

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: dracut is too "clever" at identifying modules to exclude.
       [not found]   ` <87r3l023ha.fsf-wvvUuzkyo1HefUI2i7LXDhCRmIWqnp/j@public.gmane.org>
@ 2015-10-12 15:29     ` Harald Hoyer
       [not found]       ` <561BD1E9.5010007-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Harald Hoyer @ 2015-10-12 15:29 UTC (permalink / raw)
  To: Neil Brown, trenn-IBi9RG/b67k; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA

On 12.10.2015 05:02, Neil Brown wrote:
> 
> If I have booted a kernel with md/raid built in (no modules) and
> I use dracut to build the initramfs for a different kernel which
> has the md code compiled as separate modules, then it does not include
> the required md modules in the initramfs.
> 
> As a particular instance this happen when the root filesystem is on
> RAID0.  The 'raid0.ko' module is not included and boot fails.
> 
> https://bugzilla.opensuse.org/show_bug.cgi?id=935993
> 
> This only happens when 'host-only' is selected (which is the default for
> openSUSE).
> 
> the modules.d/90mdraid/module-setup.sh code calls
> 
>     instmods =drivers/md
> 
> instmods calls
>    module_is_host_only "raid0"
> and this incorrectly fails.
> 
> If raid0.ko didn't have any alias this would succeed, but it does.
> 
> $ modinfo -F alias raid0
> md-level-0
> md-raid0
> md-personality-2

Huh? Is the module not loaded?

> 
> However these aliases don't appear in any modalias file in /sys/devices,
> in /proc/crypto, or in /proc/modules.
> 
> Maybe you could parse /proc/mdstat..
> 
> if [ -f /proc/mdstat ]; then
>   while read _d _c _a _m _x; do
>    if [ "$_c" = ':' -a "$_a" = 'active' ]; then
>       host_modalias["md-$_m"]=1
>    fi
>   done < /proc/mdstat
> fi
> 
> but it all seems rather fragile.  There are probably other modules that
> might miss out accidentally. dm?
> 
> Do we really need the host_modalias stuff?
> 
> Thanks,
> NeilBrown
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: dracut is too "clever" at identifying modules to exclude.
       [not found]       ` <561BD1E9.5010007-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2015-10-12 20:30         ` Neil Brown
       [not found]           ` <87vbabzv6a.fsf-wvvUuzkyo1HefUI2i7LXDhCRmIWqnp/j@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Neil Brown @ 2015-10-12 20:30 UTC (permalink / raw)
  To: Harald Hoyer, trenn-IBi9RG/b67k; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA

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

Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> writes:

> On 12.10.2015 05:02, Neil Brown wrote:
>> 
>> If I have booted a kernel with md/raid built in (no modules) and
>> I use dracut to build the initramfs for a different kernel which
>> has the md code compiled as separate modules, then it does not include
>> the required md modules in the initramfs.
>> 
>> As a particular instance this happen when the root filesystem is on
>> RAID0.  The 'raid0.ko' module is not included and boot fails.
>> 
>> https://bugzilla.opensuse.org/show_bug.cgi?id=935993
>> 
>> This only happens when 'host-only' is selected (which is the default for
>> openSUSE).
>> 
>> the modules.d/90mdraid/module-setup.sh code calls
>> 
>>     instmods =drivers/md
>> 
>> instmods calls
>>    module_is_host_only "raid0"
>> and this incorrectly fails.
>> 
>> If raid0.ko didn't have any alias this would succeed, but it does.
>> 
>> $ modinfo -F alias raid0
>> md-level-0
>> md-raid0
>> md-personality-2
>
> Huh? Is the module not loaded?

No, because the running kernel has "md/raid built in (no modules)".

Thanks,
NeilBrown

>
>> 
>> However these aliases don't appear in any modalias file in /sys/devices,
>> in /proc/crypto, or in /proc/modules.
>> 
>> Maybe you could parse /proc/mdstat..
>> 
>> if [ -f /proc/mdstat ]; then
>>   while read _d _c _a _m _x; do
>>    if [ "$_c" = ':' -a "$_a" = 'active' ]; then
>>       host_modalias["md-$_m"]=1
>>    fi
>>   done < /proc/mdstat
>> fi
>> 
>> but it all seems rather fragile.  There are probably other modules that
>> might miss out accidentally. dm?
>> 
>> Do we really need the host_modalias stuff?
>> 
>> Thanks,
>> NeilBrown
>> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: dracut is too "clever" at identifying modules to exclude.
       [not found]           ` <87vbabzv6a.fsf-wvvUuzkyo1HefUI2i7LXDhCRmIWqnp/j@public.gmane.org>
@ 2015-11-13 12:37             ` Harald Hoyer
       [not found]               ` <5645D9A1.3040304-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Harald Hoyer @ 2015-11-13 12:37 UTC (permalink / raw)
  To: Neil Brown, trenn-IBi9RG/b67k; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA

On 12.10.2015 22:30, Neil Brown wrote:
> Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> writes:
> 
>> On 12.10.2015 05:02, Neil Brown wrote:
>>>
>>> If I have booted a kernel with md/raid built in (no modules) and
>>> I use dracut to build the initramfs for a different kernel which
>>> has the md code compiled as separate modules, then it does not include
>>> the required md modules in the initramfs.
>>>
>>> As a particular instance this happen when the root filesystem is on
>>> RAID0.  The 'raid0.ko' module is not included and boot fails.
>>>
>>> https://bugzilla.opensuse.org/show_bug.cgi?id=935993
>>>
>>> This only happens when 'host-only' is selected (which is the default for
>>> openSUSE).
>>>
>>> the modules.d/90mdraid/module-setup.sh code calls
>>>
>>>     instmods =drivers/md
>>>
>>> instmods calls
>>>    module_is_host_only "raid0"
>>> and this incorrectly fails.
>>>
>>> If raid0.ko didn't have any alias this would succeed, but it does.
>>>
>>> $ modinfo -F alias raid0
>>> md-level-0
>>> md-raid0
>>> md-personality-2
>>
>> Huh? Is the module not loaded?
> 
> No, because the running kernel has "md/raid built in (no modules)".
> 
> Thanks,
> NeilBrown
> 
>>
>>>
>>> However these aliases don't appear in any modalias file in /sys/devices,
>>> in /proc/crypto, or in /proc/modules.
>>>
>>> Maybe you could parse /proc/mdstat..
>>>
>>> if [ -f /proc/mdstat ]; then
>>>   while read _d _c _a _m _x; do
>>>    if [ "$_c" = ':' -a "$_a" = 'active' ]; then
>>>       host_modalias["md-$_m"]=1
>>>    fi
>>>   done < /proc/mdstat
>>> fi
>>>
>>> but it all seems rather fragile.  There are probably other modules that
>>> might miss out accidentally. dm?
>>>
>>> Do we really need the host_modalias stuff?
>>>
>>> Thanks,
>>> NeilBrown
>>>

Interesting... so we have to blow up the initramfs with the entire drivers/md
in the case, where you switch from "compiled in" to "not compiled in"..

I guess that happens not that often, so better be safe than sorry.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: dracut is too "clever" at identifying modules to exclude.
       [not found]               ` <5645D9A1.3040304-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2015-11-13 12:42                 ` Harald Hoyer
       [not found]                   ` <5645DACA.20403-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Harald Hoyer @ 2015-11-13 12:42 UTC (permalink / raw)
  To: Neil Brown, trenn-IBi9RG/b67k; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA

On 13.11.2015 13:37, Harald Hoyer wrote:
> On 12.10.2015 22:30, Neil Brown wrote:
>> Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> writes:
>>
>>> On 12.10.2015 05:02, Neil Brown wrote:
>>>>
>>>> If I have booted a kernel with md/raid built in (no modules) and
>>>> I use dracut to build the initramfs for a different kernel which
>>>> has the md code compiled as separate modules, then it does not include
>>>> the required md modules in the initramfs.
>>>>
>>>> As a particular instance this happen when the root filesystem is on
>>>> RAID0.  The 'raid0.ko' module is not included and boot fails.
>>>>
>>>> https://bugzilla.opensuse.org/show_bug.cgi?id=935993
>>>>
>>>> This only happens when 'host-only' is selected (which is the default for
>>>> openSUSE).
>>>>
>>>> the modules.d/90mdraid/module-setup.sh code calls
>>>>
>>>>     instmods =drivers/md
>>>>
>>>> instmods calls
>>>>    module_is_host_only "raid0"
>>>> and this incorrectly fails.
>>>>
>>>> If raid0.ko didn't have any alias this would succeed, but it does.
>>>>
>>>> $ modinfo -F alias raid0
>>>> md-level-0
>>>> md-raid0
>>>> md-personality-2
>>>
>>> Huh? Is the module not loaded?
>>
>> No, because the running kernel has "md/raid built in (no modules)".
>>
>> Thanks,
>> NeilBrown
>>
>>>
>>>>
>>>> However these aliases don't appear in any modalias file in /sys/devices,
>>>> in /proc/crypto, or in /proc/modules.
>>>>
>>>> Maybe you could parse /proc/mdstat..
>>>>
>>>> if [ -f /proc/mdstat ]; then
>>>>   while read _d _c _a _m _x; do
>>>>    if [ "$_c" = ':' -a "$_a" = 'active' ]; then
>>>>       host_modalias["md-$_m"]=1
>>>>    fi
>>>>   done < /proc/mdstat
>>>> fi
>>>>
>>>> but it all seems rather fragile.  There are probably other modules that
>>>> might miss out accidentally. dm?
>>>>
>>>> Do we really need the host_modalias stuff?
>>>>
>>>> Thanks,
>>>> NeilBrown
>>>>
> 
> Interesting... so we have to blow up the initramfs with the entire drivers/md
> in the case, where you switch from "compiled in" to "not compiled in"..
> 
> I guess that happens not that often, so better be safe than sorry.

remove host_modalias

<https://github.com/haraldh/dracut/commit/07a081f352497258862ae164d11d9e6dc2c5b959>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: dracut is too "clever" at identifying modules to exclude.
       [not found]                   ` <5645DACA.20403-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2015-12-16  4:15                     ` NeilBrown
  0 siblings, 0 replies; 9+ messages in thread
From: NeilBrown @ 2015-12-16  4:15 UTC (permalink / raw)
  To: Harald Hoyer, trenn-IBi9RG/b67k; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA

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

On Fri, Nov 13 2015, Harald Hoyer wrote:

> On 13.11.2015 13:37, Harald Hoyer wrote:
>> On 12.10.2015 22:30, Neil Brown wrote:
>>> Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> writes:
>>>
>>>> On 12.10.2015 05:02, Neil Brown wrote:
>>>>>
>>>>> If I have booted a kernel with md/raid built in (no modules) and
>>>>> I use dracut to build the initramfs for a different kernel which
>>>>> has the md code compiled as separate modules, then it does not include
>>>>> the required md modules in the initramfs.
>>>>>
>>>>> As a particular instance this happen when the root filesystem is on
>>>>> RAID0.  The 'raid0.ko' module is not included and boot fails.
>>>>>
>>>>> https://bugzilla.opensuse.org/show_bug.cgi?id=935993
>>>>>
>>>>> This only happens when 'host-only' is selected (which is the default for
>>>>> openSUSE).
>>>>>
>>>>> the modules.d/90mdraid/module-setup.sh code calls
>>>>>
>>>>>     instmods =drivers/md
>>>>>
>>>>> instmods calls
>>>>>    module_is_host_only "raid0"
>>>>> and this incorrectly fails.
>>>>>
>>>>> If raid0.ko didn't have any alias this would succeed, but it does.
>>>>>
>>>>> $ modinfo -F alias raid0
>>>>> md-level-0
>>>>> md-raid0
>>>>> md-personality-2
>>>>
>>>> Huh? Is the module not loaded?
>>>
>>> No, because the running kernel has "md/raid built in (no modules)".
>>>
>>> Thanks,
>>> NeilBrown
>>>
>>>>
>>>>>
>>>>> However these aliases don't appear in any modalias file in /sys/devices,
>>>>> in /proc/crypto, or in /proc/modules.
>>>>>
>>>>> Maybe you could parse /proc/mdstat..
>>>>>
>>>>> if [ -f /proc/mdstat ]; then
>>>>>   while read _d _c _a _m _x; do
>>>>>    if [ "$_c" = ':' -a "$_a" = 'active' ]; then
>>>>>       host_modalias["md-$_m"]=1
>>>>>    fi
>>>>>   done < /proc/mdstat
>>>>> fi
>>>>>
>>>>> but it all seems rather fragile.  There are probably other modules that
>>>>> might miss out accidentally. dm?
>>>>>
>>>>> Do we really need the host_modalias stuff?
>>>>>
>>>>> Thanks,
>>>>> NeilBrown
>>>>>
>> 
>> Interesting... so we have to blow up the initramfs with the entire drivers/md
>> in the case, where you switch from "compiled in" to "not compiled in"..
>> 
>> I guess that happens not that often, so better be safe than sorry.
>
> remove host_modalias
>
> <https://github.com/haraldh/dracut/commit/07a081f352497258862ae164d11d9e6dc2c5b959>

Thanks a lot for resolving this!

NeilBrown

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-12-16  4:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-09  4:08 [PATCH] dracut-systemd: ensure grep is installed as needed by rootfs-generator NeilBrown
     [not found] ` <20150409140840.0bb6d59d-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
2015-04-21 14:38   ` Harald Hoyer
     [not found]     ` <553660CE.7090509-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-04-21 23:47       ` NeilBrown
2015-10-12  3:02 ` dracut is too "clever" at identifying modules to exclude Neil Brown
     [not found]   ` <87r3l023ha.fsf-wvvUuzkyo1HefUI2i7LXDhCRmIWqnp/j@public.gmane.org>
2015-10-12 15:29     ` Harald Hoyer
     [not found]       ` <561BD1E9.5010007-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-10-12 20:30         ` Neil Brown
     [not found]           ` <87vbabzv6a.fsf-wvvUuzkyo1HefUI2i7LXDhCRmIWqnp/j@public.gmane.org>
2015-11-13 12:37             ` Harald Hoyer
     [not found]               ` <5645D9A1.3040304-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-11-13 12:42                 ` Harald Hoyer
     [not found]                   ` <5645DACA.20403-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-12-16  4:15                     ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox