Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 485748 - sys-kernel/dracut-033[mdraid] with sys-fs/udev-204 and sys-fs/mdadm-3.3 - dracut: sed: can't read /var/tmp/initramfs.UIPmSo/lib/udev/rules.d/64-md-raid.rules: No such file or directory
Summary: sys-kernel/dracut-033[mdraid] with sys-fs/udev-204 and sys-fs/mdadm-3.3 - dra...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amadeusz Żołnowski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-23 14:18 UTC by Zoltán Halassy
Modified: 2013-10-06 18:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zoltán Halassy 2013-09-23 14:18:11 UTC
These packages are installed:

=sys-kernel/dracut-033
=sys-fs/udev-204
=sys-fs/mdadm-3.3

Issuing this command:

# dracut --fstab -a 'lvm mdraid' --lvmconf --mdadmconf --force /boot/initrd
[...]
*** Including module: mdraid ***
Skipping udev rule: 64-md-raid.rules
sed: can't read /var/tmp/initramfs.UIPmSo/lib/udev/rules.d/64-md-raid.rules: No such file or directory
[...]

The error message comes from /usr/lib/dracut/modules.d/90mdraid/module-setup.sh , line 75. It tries to find a 64-md-raid.rules file. sys-fs/udev-204 does not provide such file, and sys-fs/mdadm-3.3 only provides these two:

63-md-raid-arrays.rules
64-md-raid-assembly.rules
Comment 2 Alexander Tsoy 2013-09-28 17:21:52 UTC
I sent a patch upstream. Let's see what they think.

http://article.gmane.org/gmane.linux.kernel.initramfs/3426
Comment 3 Amadeusz Żołnowski (RETIRED) gentoo-dev 2013-09-29 09:53:46 UTC
OK, thank you.
Comment 5 Amadeusz Żołnowski (RETIRED) gentoo-dev 2013-10-04 12:20:45 UTC
(In reply to Alexander Tsoy from comment #4)
> Upstream commits:
> 
> http://git.kernel.org/cgit/boot/dracut/dracut.git/commit/
> ?id=5bcf262d598f085f2d92f7786ce2c8520ba3f82b
> http://git.kernel.org/cgit/boot/dracut/dracut.git/commit/
> ?id=ecc13ef17e376c4ee54a2177687ef018466f53ca

Thanks, I'll bump ebuild with your patches.
Comment 6 Amadeusz Żołnowski (RETIRED) gentoo-dev 2013-10-06 18:32:05 UTC
Patches applied. Thank you Alexander!

+*dracut-033-r3 (06 Oct 2013)
+
+  06 Oct 2013; Amadeusz Żołnowski <aidecoe@gentoo.org> +dracut-033-r3.ebuild,
+  +files/033-0005-dracut.sh-harden-host_modalias-reading.patch,
+  +files/033-0006-ifup-do-not-dhcp-on-network-interface-.patch,
+  +files/033-0007-lvm-mdraid-Fix-LVM-on-MD-activation.patch,
+  +files/033-0008-mdraid-module-setup.sh-install-configs.patch,
+  +files/033-0009-mdraid-module-setup.sh-fixes-for-mdadm.patch:
+  Applied patches with bug fixes wrt mdraid and lvm.
+
+  It fixes bug #486344, bug #485748, possible bug on PPC and bug related to
+  net-bonding.
+
+  Thanks to Alexander Tsoy <alexander@tsoy.me> for some of these patches and
+  generally for help.
+