[OE-core] udev + 60-persistent-storage.rules + IDE

Patrick Ohly patrick.ohly at intel.com
Thu Sep 17 06:44:41 UTC 2015


On Wed, 2015-09-16 at 14:11 +0200, Patrick Ohly wrote:
> I just noticed that udev (no longer) creates /dev/disk/by-uuid links for
> my boot partition under qemu when booting a whole-disk image
> (hdddirect). The device is then /dev/hda, with /dev/hda2 being the root
> partition.
> 
> systemd's 60-persistent-storage.rules indeed skips the relevant rules
> because "hd" is not listed:
> 
> KERNEL!="loop*|mmcblk*[0-9]|msblk*[0-9]|mspblk*[0-9]|nvme*|sd*|sr*|vd*|xvd*|bcache*|cciss*|dasd*|ubd*", GOTO="persistent_storage_end"
> 
> Adding "hd*" to that line fixes the problem. I'll send patches to
> systemd and for OE-core.

Lennart argued that /dev/hd* is caused by using the deprecated
CONFIG_IDE in the kernel and therefore rejected adding "hd*" to upstream
udev.

CONFIG_IDE seems to come from common-pc-drivers.cfg [1] but that's just
a guess - I'm not entirely sure how to identify the actual kernel config
fragments that were used during a build. Anyway, it has been there since
2011 and modernizing that is a different topic, so I'll just send the
patch for systemd/udev.

[1]
http://git.yoctoproject.org/cgit/cgit.cgi/yocto-kernel-cache/tree/bsp/common-pc/common-pc-drivers.cfg

-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.






More information about the Openembedded-core mailing list