diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-04-05 17:45:41 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-04-11 11:09:20 +0100 |
commit | b40f442f413e9c029165bb8ea893d7f0e792b96a (patch) | |
tree | 2fc8c68ba428f5cafe679d64694cf8a10f5cbfed | |
parent | ee993d1a4d63136ccbadb6f90068fd499bf80dc5 (diff) | |
download | libguestfs-b40f442f413e9c029165bb8ea893d7f0e792b96a.tar.gz libguestfs-b40f442f413e9c029165bb8ea893d7f0e792b96a.tar.xz libguestfs-b40f442f413e9c029165bb8ea893d7f0e792b96a.zip |
edit: Let $root == $roots[0].
This is just code motion.
(cherry picked from commit aed8f220d279e910e0f398fea6fa674cc6a63783)
-rwxr-xr-x | tools/virt-edit | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/virt-edit b/tools/virt-edit index 393028fc..e45aea65 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{$_}, $_); |