]> git.ipfire.org Git - thirdparty/grub.git/commit
2010-07-20 Vadim Solomin <vadic052@gmail.com>
authorVadim Solomin <vadic052@gmail.com>
Tue, 20 Jul 2010 16:14:00 +0000 (17:14 +0100)
committerColin Watson <cjwatson@ubuntu.com>
Tue, 20 Jul 2010 16:14:00 +0000 (17:14 +0100)
commitab8ba957608a44a6f6ccf3a9f6055dd71f853f78
tree1096c85169a4d3a3ab9dd7bd49f36507ae5d3091
parenta29d6a4bc516c1f7cb0f142714ad4b85e9b3a1b2
2010-07-20  Vadim Solomin  <vadic052@gmail.com>
2010-07-20  Colin Watson  <cjwatson@ubuntu.com>

Generate device.map in something closer to the old ordering.

* util/deviceiter.c (struct device): New declaration.
(compare_file_names): Rename to ...
(compare_devices): ... this.  Sort by kernel name in preference to
the stable by-id name, but keep the latter as a fallback comparison.
Update header comment.
(grub_util_iterate_devices) [__linux__]: Construct and sort an array
of `struct device' rather than of plain file names.

Also-By: Colin Watson <cjwatson@ubuntu.com>
ChangeLog
util/deviceiter.c