git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4de124d
)
edit: Let $root == $roots[0].
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 5 Apr 2011 16:45:41 +0000
(17:45 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 5 Apr 2011 17:34:35 +0000
(18:34 +0100)
This is just code motion.
tools/virt-edit
patch
|
blob
|
history
diff --git
a/tools/virt-edit
b/tools/virt-edit
index
11e9023
..
d348c8e
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))
}
-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{$_}, $_);