Permalink
Browse files

removing the brittle 'file' check of image and kernel

  • Loading branch information...
1 parent b3bf50c commit 53352070b27aea545bcf362fd9993b69d3c09abf @dmitrii dmitrii committed Mar 10, 2010
Showing with 2 additions and 6 deletions.
  1. +2 −6 storage/ami2vmx.c
View
@@ -213,10 +213,7 @@ int verify_input(char *file, char *kernel, char *ramdisk, char *modules, int for
}
if (strstr(output, "ext2 filesystem") || strstr(output, "ext3 filesystem") || strstr(output, "ext4 filesystem")) {
} else {
- printf("ERROR: supplied image is not an ext2, ext3 or ext4 filesystem '%s'\n", file);
- if (!force) {
- return(1);
- }
+ printf("WARNING: supplied image is not an ext2, ext3 or ext4 filesystem '%s'\n", file);
}
free(output);
@@ -228,8 +225,7 @@ int verify_input(char *file, char *kernel, char *ramdisk, char *modules, int for
}
if (strstr(output, "Linux kernel")) {
} else {
- printf("ERROR: supplied kernel is not a Linux kernel '%s'\n", kernel);
- if (!force) return(1);
+ printf("WARNING: supplied kernel may not be a Linux kernel '%s'\n", kernel);
}
free(output);

0 comments on commit 5335207

Please sign in to comment.