search for: dce6fbb

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

2015 Jul 21
1
[PATCH] p2v: tests: Don't fail when test machine has only a single hard disk.
...'t perform the conversion with no hard disks (the gui.c path already has this check, so it is only needed in the kernel.c path). --- p2v/kernel.c | 9 +++++++++ p2v/main.c | 14 ++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/p2v/kernel.c b/p2v/kernel.c index dce6fbb..b283417 100644 --- a/p2v/kernel.c +++ b/p2v/kernel.c @@ -206,6 +206,15 @@ kernel_configuration (struct config *config, char **cmdline, int cmdline_source) exit (EXIT_SUCCESS); } + /* Some disks must have been specified for conversion. */ + if (config->disks == NULL || guestfs_int_co...