Don't die during inspection if initrd doesn't exist
authorMatthew Booth <mbooth@redhat.com>
Wed, 21 Apr 2010 14:39:48 +0000 (15:39 +0100)
committerRichard Jones <rjones@redhat.com>
Wed, 21 Apr 2010 15:51:20 +0000 (16:51 +0100)
commit2b43970c8c97f24b1f45c040c6963d30661fa514
tree5c3d3d119098648fb2a3795f5280a76e5712cb78
parent216557b1ebc013701e7474720bc1280f43e51bb1
Don't die during inspection if initrd doesn't exist

This fixes a problem where inspection would die if grub.conf referenced a
non-existent initrd. Just return an empty initrd instead.
perl/lib/Sys/Guestfs/Lib.pm