From aed8f220d279e910e0f398fea6fa674cc6a63783 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 5 Apr 2011 17:45:41 +0100 Subject: [PATCH] edit: Let $root == $roots[0]. This is just code motion. --- tools/virt-edit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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{$_}, $_); -- 1.8.3.1