Add test for virt-resize.
[libguestfs.git] / tools / virt-tar
index 839ff8e..3e6e20b 100755 (executable)
@@ -25,7 +25,6 @@ use Sys::Guestfs::Lib qw(open_guest get_partitions resolve_windows_path
   inspect_operating_systems mount_operating_system);
 use Pod::Usage;
 use Getopt::Long;
-use File::Temp qw/tempfile/;
 use Locale::TextDomain 'libguestfs';
 
 =encoding utf8
@@ -227,7 +226,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];