From: Richard W.M. Jones Date: Tue, 5 Apr 2011 16:45:41 +0000 (+0100) Subject: edit: Let $root == $roots[0]. X-Git-Tag: 1.8.5~4 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=b40f442f413e9c029165bb8ea893d7f0e792b96a;p=libguestfs.git edit: Let $root == $roots[0]. This is just code motion. (cherry picked from commit aed8f220d279e910e0f398fea6fa674cc6a63783) --- diff --git a/tools/virt-edit b/tools/virt-edit index 393028f..e45aea6 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{$_}, $_);