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.9.17~9 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=aed8f220d279e910e0f398fea6fa674cc6a63783;p=libguestfs.git edit: Let $root == $roots[0]. This is just code motion. --- diff --git a/tools/virt-edit b/tools/virt-edit index 11e9023..d348c8e 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{$_}, $_);