I changed the Relax-NG schema file used by launchpad for the
"formal sanity check" of submitted dat so that data from udev,
the DMI stuff and additional data for SCSI devices can replace
the HAL data. See the attached file.
The changes are:
- the node <hal> is no longer unconditionally required; instead,
the nodes <udev>, <dmi> and <scsi-devices> may appear.
(But either <hal> or <udev>, <dmi> and <scsi-devices>
must appear)
- <udev> contains the plain output from
udevadm info --export-db
- <dmi> contains the output from
grep -r . /sys/class/dmi/id/
- <scsi-devices> contains the content of the sysfs file "vendor",
"model", "type" of those sysfs directories where the udev
property DEVTYPE has the value "scsi_device". The format is
the same as that for the dmi data.
- In theory, we can link questions to devices, with the sub-node
<target id="...">. (Yes, I know that Matt wants to remove the
questions completely form the submitted data, but I don't
want to omit this option completely from the schema.) For
submissions with HAL data, the value of the attribute "id" was
the ID of a HAL node, which was an integer. The schema now
allows arbitrary text; for submissions with udev data, the
value should be the sysfs path of a device as given in the
<udev> node.
- The same change applies to the (also unused)
<alias target="..."> node.
I changed the Relax-NG schema file used by launchpad for the
"formal sanity check" of submitted dat so that data from udev,
the DMI stuff and additional data for SCSI devices can replace
the HAL data. See the attached file.
The changes are:
- the node <hal> is no longer unconditionally required; instead,
the nodes <udev>, <dmi> and <scsi-devices> may appear.
(But either <hal> or <udev>, <dmi> and <scsi-devices>
must appear)
- <udev> contains the plain output from
udevadm info --export-db
- <dmi> contains the output from
grep -r . /sys/class/dmi/id/
- <scsi-devices> contains the content of the sysfs file "vendor",
"model", "type" of those sysfs directories where the udev
property DEVTYPE has the value "scsi_device". The format is
the same as that for the dmi data.
- In theory, we can link questions to devices, with the sub-node
<target id="...">. (Yes, I know that Matt wants to remove the
questions completely form the submitted data, but I don't
want to omit this option completely from the schema.) For
submissions with HAL data, the value of the attribute "id" was
the ID of a HAL node, which was an integer. The schema now
allows arbitrary text; for submissions with udev data, the
value should be the sysfs path of a device as given in the
<udev> node.
- The same change applies to the (also unused)
<alias target="..."> node.