edit: Let $root == $roots[0].

This is just code motion.
This commit is contained in:
Richard W.M. Jones
2011-04-05 17:45:41 +01:00
parent 4de124debf
commit aed8f220d2

View File

@@ -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{$_}, $_);