X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=tools%2Fvirt-edit;h=7f474c96a9796ee155115ae9ddcc25d6cad7b9f7;hp=11e90234ebcb1c560dac447830039e0e44bacf5b;hb=60cdf446063a0ae61c52140355677d7da2327fa2;hpb=4de124debf181ff6af38617b80c2355627e38d35;ds=sidebyside diff --git a/tools/virt-edit b/tools/virt-edit index 11e9023..7f474c9 100755 --- a/tools/virt-edit +++ b/tools/virt-edit @@ -194,7 +194,8 @@ if (@roots > 1) { die __x("{prog}: multiboot operating systems are not supported.\n", prog => basename ($0)) } -my %fses = $g->inspect_get_mountpoints ($roots[0]); +my $root = $roots[0]; +my %fses = $g->inspect_get_mountpoints ($root); my @fses = sort { length $a <=> length $b } keys %fses; foreach (@fses) { $g->mount_options ("", $fses{$_}, $_); @@ -268,8 +269,6 @@ if (defined $do_upload) { undef $g; -exit 0; - =head1 NON-INTERACTIVE EDITING C normally calls out to C<$EDITOR> (or vi) so @@ -369,6 +368,10 @@ do it like this: guestfish --rw -i -d domname edit /file1 : edit /file2 +=cut + +exit 0; + =head1 ENVIRONMENT VARIABLES =over 4