search for: _find_grub_prefix

Displaying 1 result from an estimated 1 matches for "_find_grub_prefix".

2009 Aug 13
1
[PATCH] Don't assume grub is on a separate boot filesystem
...Sys/Guestfs/Lib.pm index 72b0f7d..89f2aa6 100644 --- a/perl/lib/Sys/Guestfs/Lib.pm +++ b/perl/lib/Sys/Guestfs/Lib.pm @@ -1435,6 +1435,56 @@ sub _check_for_applications $os->{apps} = \@apps; } +# Find the path which needs to be prepended to paths in grub.conf to make them +# absolute +sub _find_grub_prefix +{ + my ($g, $os) = @_; + + my $fses = $os->{filesystems}; + die("filesystems undefined") unless(defined($fses)); + + # Look for the filesystem which contains grub + my $grubdev; + foreach my $dev (keys(%$fses)) { + my $fsinfo = $fses->{$dev}; + if(ex...