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>
Thu, 22 Apr 2010 07:20:25 +0000 (08:20 +0100)
commit9ac07ee0c28fdd75e0a7393c69374ddff3a40ac9
tree219aa5e8d8d5bdcdb74f08b02c66047820d2b911
parent64872b3b8fc6c9f0c1d98f162f0ad9d7d9a55a21
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.
(cherry picked from commit 2b43970c8c97f24b1f45c040c6963d30661fa514)
perl/lib/Sys/Guestfs/Lib.pm