libxc: don't fail domain creation when unpacking initrd fails
authorJan Beulich <jbeulich@suse.com>
Tue, 6 Feb 2018 16:29:33 +0000 (17:29 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 6 Feb 2018 16:29:33 +0000 (17:29 +0100)
commitd0115f96ea633fd6d668f2c067785912c0ad4c00
treeee7efd2457fbcc5723eabe38ad815bfbeb1eb859
parent1c3545eeaf4ac6f8d5db5a52c29c112694bcd4f0
libxc: don't fail domain creation when unpacking initrd fails

At least Linux kernels have been able to work with gzip-ed initrd for
quite some time; initrd compressed with other methods aren't even being
attempted to unpack. Furthermore the unzip-ing routine used here isn't
capable of dealing with various forms of concatenated files, each of
which was gzip-ed separately (it is this particular case which has been
the source of observed VM creation failures).

Hence, if unpacking fails, simply hand the compressed blob to the guest
as is.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/include/xc_dom.h
tools/libxc/xc_dom_core.c