Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
removing the brittle 'file' check of image and kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii committed Mar 10, 2010
1 parent b3bf50c commit 5335207
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions storage/ami2vmx.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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")) { if (strstr(output, "ext2 filesystem") || strstr(output, "ext3 filesystem") || strstr(output, "ext4 filesystem")) {
} else { } else {
printf("ERROR: supplied image is not an ext2, ext3 or ext4 filesystem '%s'\n", file); printf("WARNING: supplied image is not an ext2, ext3 or ext4 filesystem '%s'\n", file);
if (!force) {
return(1);
}
} }
free(output); free(output);


Expand All @@ -228,8 +225,7 @@ int verify_input(char *file, char *kernel, char *ramdisk, char *modules, int for
} }
if (strstr(output, "Linux kernel")) { if (strstr(output, "Linux kernel")) {
} else { } else {
printf("ERROR: supplied kernel is not a Linux kernel '%s'\n", kernel); printf("WARNING: supplied kernel may not be a Linux kernel '%s'\n", kernel);
if (!force) return(1);
} }
free(output); free(output);


Expand Down

0 comments on commit 5335207

Please sign in to comment.