summaryrefslogtreecommitdiffstats
path: root/fish/inspect.c
diff options
context:
space:
mode:
Diffstat (limited to 'fish/inspect.c')
-rw-r--r--fish/inspect.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fish/inspect.c b/fish/inspect.c
index 713501e9..5e1948cd 100644
--- a/fish/inspect.c
+++ b/fish/inspect.c
@@ -73,6 +73,12 @@ compare_keys (const void *p1, const void *p2)
void
inspect_mount (void)
{
+ if (live) {
+ fprintf (stderr, _("%s: don't use --live and -i options together\n"),
+ program_name);
+ exit (EXIT_FAILURE);
+ }
+
inspect_do_decrypt ();
char **roots = guestfs_inspect_os (g);