summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-05-12 18:11:37 +0100
committerRichard Jones <rjones@redhat.com>2010-05-13 16:22:10 +0100
commit94e310dcfbcd368cbe02dbc1643ed2ff9821cd48 (patch)
treeb358649ef1e28475f06da6788a38b24a8756ac65 /tools
parent287f8957fea3efe411c7ac55595d5d6c7b613e4e (diff)
downloadlibguestfs-94e310dcfbcd368cbe02dbc1643ed2ff9821cd48.tar.gz
libguestfs-94e310dcfbcd368cbe02dbc1643ed2ff9821cd48.tar.xz
libguestfs-94e310dcfbcd368cbe02dbc1643ed2ff9821cd48.zip
Improved error if virt-inspector cannot find OSes in image (RHBZ#591142).
Diffstat (limited to 'tools')
-rwxr-xr-xtools/virt-cat1
-rwxr-xr-xtools/virt-edit1
-rwxr-xr-xtools/virt-ls1
-rwxr-xr-xtools/virt-tar1
-rwxr-xr-xtools/virt-win-reg1
5 files changed, 0 insertions, 5 deletions
diff --git a/tools/virt-cat b/tools/virt-cat
index c8cdd193..e000e25f 100755
--- a/tools/virt-cat
+++ b/tools/virt-cat
@@ -150,7 +150,6 @@ my %fses =
my $oses = inspect_operating_systems ($g, \%fses);
my @roots = keys %$oses;
-die __"no root device found in this operating system image" if @roots == 0;
die __"multiboot operating systems are not supported by virt-cat" if @roots > 1;
my $root_dev = $roots[0];
diff --git a/tools/virt-edit b/tools/virt-edit
index c133e6a1..e00e4cfb 100755
--- a/tools/virt-edit
+++ b/tools/virt-edit
@@ -133,7 +133,6 @@ my %fses =
my $oses = inspect_operating_systems ($g, \%fses);
my @roots = keys %$oses;
-die __"no root device found in this operating system image" if @roots == 0;
die __"multiboot operating systems are not supported by virt-edit" if @roots > 1;
my $root_dev = $roots[0];
diff --git a/tools/virt-ls b/tools/virt-ls
index 8add52e3..8813d2fa 100755
--- a/tools/virt-ls
+++ b/tools/virt-ls
@@ -183,7 +183,6 @@ my %fses =
my $oses = inspect_operating_systems ($g, \%fses);
my @roots = keys %$oses;
-die __"no root device found in this operating system image\n" if @roots == 0;
die __"multiboot operating systems are not supported by virt-ls\n" if @roots > 1;
my $root_dev = $roots[0];
diff --git a/tools/virt-tar b/tools/virt-tar
index 839ff8eb..07c65f44 100755
--- a/tools/virt-tar
+++ b/tools/virt-tar
@@ -227,7 +227,6 @@ my %fses =
my $oses = inspect_operating_systems ($g, \%fses);
my @roots = keys %$oses;
-die __"no root device found in this operating system image\n" if @roots == 0;
die __"multiboot operating systems are not supported by virt-tar\n" if @roots > 1;
my $root_dev = $roots[0];
diff --git a/tools/virt-win-reg b/tools/virt-win-reg
index 74881b67..afa8087a 100755
--- a/tools/virt-win-reg
+++ b/tools/virt-win-reg
@@ -280,7 +280,6 @@ my %fses =
my $oses = inspect_operating_systems ($g, \%fses);
my @roots = keys %$oses;
-die __"no root device found in this operating system image" if @roots == 0;
die __"multiboot operating systems are not supported by virt-win-reg" if @roots > 1;
my $root_dev = $roots[0];