Mark Rosenstand wrote:
("---" = upstream, "+++" = LFS)
# sysfs is populated after the event is sent
-ACTION=="add", DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*",
WAIT_FOR_SYSFS="bus"
+ACTION=="add", DEVPATH=="/devices/*", SUBSYSTEMS=="?*", WAIT_FOR_SYSFS="bus"
Upstream updated their rule.
-KERNEL=="ram*|loop*|fd*|nbd*|dm-*", GOTO="persistent_storage_end"
+KERNEL=="ram*|loop*|fd*|nbd*", GOTO="persistent_storage_end"
Upstream change requested by me but not propagated to LFS
-KERNEL=="hd*[0-9]", ATTRS{removable}=="1", GOTO="persistent_storage_end"
+KERNEL=="hd*[0-9]", ATTRS{../removable}=="1", GOTO="persistent_storage_end"
Looks like a conversion error on LFS end: the "removable" attribute
applies to the whole disk (or maybe even to the CF card which appears as
a controller), but not partitions. However, the LFS form should also work.
-KERNEL=="sd*[!0-9]|sr*|st*", ATTRS{ieee1394_id}=="*", ENV{ID_SERIAL}="$attr{ieee1394_id}", ENV{ID_BUS}="ieee1394"
+KERNEL=="sd*[!0-9]|sr*|st*", ATTRS{ieee1394_id}=="?*",
ENV{ID_SERIAL}="$attr{ieee1394_id}", ENV{ID_BUS}="ieee1394"
Same. "*" matches any value, "?*" matches any non-empty value.
-KERNEL=="*[!0-9]", ATTR{removable}=="1", GOTO="persistent_storage_end"
+KERNEL=="*[!0-9]", ATTRS{removable}=="1", GOTO="persistent_storage_end"
This rule matches whole-disk devices, although there is indeed some
inconsistency in ATTR vs ATTRS upstream.
-ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID}=="?*",
SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
+ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_UUID}=="?*",
SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
Upstream updated their rule.
It does make sense to use 05-udev-early.rules and
60-persistent-storage.rules directly from upstream, unless a bug is
found there. There is also 60-persistent-input.rules and
95-udev-late.rules that should also be used in their upstream form.
Only in lfs: *
That's the meat that should be discussed. Without these rules, nothing
works.
--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page