Rewrite /proc/self/mountinfo handling to cope with bind-mounts and

move-mounts appearing out of order.  Fixes Ubuntu bug #738345.

* grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
Build a list of relevant visible mounts using the mnt_id and
parent_mnt_id fields, and then scan that list at the end.
This commit is contained in:
Colin Watson 2011-04-13 12:36:04 +01:00
parent 9d5f81622c
commit 78fa584f67
2 changed files with 90 additions and 19 deletions

View file

@ -1,3 +1,12 @@
2011-04-13 Colin Watson <cjwatson@ubuntu.com>
Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
move-mounts appearing out of order. Fixes Ubuntu bug #738345.
* grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
Build a list of relevant visible mounts using the mnt_id and
parent_mnt_id fields, and then scan that list at the end.
2011-04-12 Colin Watson <cjwatson@ubuntu.com>
* docs/grub.texi (normal): New section.