git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compile rpcgen-generated files with -fno-strict-aliasing
[libguestfs.git]
/
tools
/
virt-edit
diff --git
a/tools/virt-edit
b/tools/virt-edit
index
393028f
..
e468dd8
100755
(executable)
--- 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))
}
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{$_}, $_);
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;
undef $g;
-exit 0;
-
=head1 NON-INTERACTIVE EDITING
C<virt-edit> normally calls out to C<$EDITOR> (or vi) so
=head1 NON-INTERACTIVE EDITING
C<virt-edit> 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
guestfish --rw -i -d domname edit /file1 : edit /file2
+=cut
+
+exit 0;
+
=head1 ENVIRONMENT VARIABLES
=over 4
=head1 ENVIRONMENT VARIABLES
=over 4