diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-12-07 11:46:43 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-12-07 11:46:43 +0000 |
commit | 7d3848ddc046f79cc1112809bd9970eea8060018 (patch) | |
tree | b5068594eb28306e5a3a5966a54ec402ee9f7457 | |
parent | 41a7a68cf33a174ba950aa29951a07c391a16b4d (diff) | |
download | libguestfs-7d3848ddc046f79cc1112809bd9970eea8060018.tar.gz libguestfs-7d3848ddc046f79cc1112809bd9970eea8060018.tar.xz libguestfs-7d3848ddc046f79cc1112809bd9970eea8060018.zip |
fish: Improve error messages when no OS / multi-boot OS found with inspection (RHBZ#760775).
-rw-r--r-- | fish/inspect.c | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/fish/inspect.c b/fish/inspect.c index 98329ee5..7d4401e2 100644 --- a/fish/inspect.c +++ b/fish/inspect.c @@ -86,14 +86,42 @@ inspect_mount (void) exit (EXIT_FAILURE); if (roots[0] == NULL) { - fprintf (stderr, _("%s: no operating system was found on this disk\n"), + fprintf (stderr, + _("%s: no operating system was found on this disk\n" + "\n" + "If using guestfish '-i' option, remove this option and instead\n" + "use the commands 'run' followed by 'list-filesystems'.\n" + "You can then mount filesystems you want by hand using the\n" + "'mount' or 'mount-ro' command.\n" + "\n" + "If using guestmount '-i', remove this option and choose the\n" + "filesystem(s) you want to see by manually adding '-m' option(s).\n" + "Use 'virt-filesystems' to see what filesystems are available.\n" + "\n" + "If using other virt tools, this disk image won't work\n" + "with these tools. Use the guestfish equivalent commands\n" + "(see the virt tool manual page).\n"), program_name); free_strings (roots); exit (EXIT_FAILURE); } if (roots[1] != NULL) { - fprintf (stderr, _("%s: multi-boot operating systems are not supported by the -i option\n"), + fprintf (stderr, + _("%s: multi-boot operating systems are not supported\n" + "\n" + "If using guestfish '-i' option, remove this option and instead\n" + "use the commands 'run' followed by 'list-filesystems'.\n" + "You can then mount filesystems you want by hand using the\n" + "'mount' or 'mount-ro' command.\n" + "\n" + "If using guestmount '-i', remove this option and choose the\n" + "filesystem(s) you want to see by manually adding '-m' option(s).\n" + "Use 'virt-filesystems' to see what filesystems are available.\n" + "\n" + "If using other virt tools, multi-boot operating systems won't work\n" + "with these tools. Use the guestfish equivalent commands\n" + "(see the virt tool manual page).\n"), program_name); free_strings (roots); exit (EXIT_FAILURE); |