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:
ee993d1
)
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>
Mon, 11 Apr 2011 10:09:20 +0000
(11:09 +0100)
This is just code motion.
(cherry picked from commit
aed8f220d279e910e0f398fea6fa674cc6a63783
)
tools/virt-edit
patch
|
blob
|
history
diff --git
a/tools/virt-edit
b/tools/virt-edit
index
393028f
..
e45aea6
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{$_}, $_);