diff options
author | Matthew Booth <mbooth@redhat.com> | 2009-08-13 11:48:27 +0100 |
---|---|---|
committer | Matthew Booth <mbooth@redhat.com> | 2009-08-13 12:17:58 +0100 |
commit | da90c9d8761caced81b9cf7d6e41180afa53ecb9 (patch) | |
tree | 05da1a3741a5a40c74c923bc3e418acdaba025cf /daemon/upload.c | |
parent | d082a76d679b019784bc0b131028ee74e381f4a2 (diff) | |
download | libguestfs-da90c9d8761caced81b9cf7d6e41180afa53ecb9.tar.gz libguestfs-da90c9d8761caced81b9cf7d6e41180afa53ecb9.tar.xz libguestfs-da90c9d8761caced81b9cf7d6e41180afa53ecb9.zip |
Don't assume grub is on a separate boot filesystem
Paths in grub.conf are relative to the filesystem containing it. grub parsing
currently assumes that it is on /boot, and will fail if it isn't, for example
because a guest only has a single partition.
This patch makes grub parsing work harder to work out what grub paths are
relative to. Firstly, it looks for a previous detected 'linux-grub' filesystem.
If this isn't found, it tries to work out which filesystem contains
/boot/grub/menu.lst and uses that.
Diffstat (limited to 'daemon/upload.c')
0 files changed, 0 insertions, 0 deletions