mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
edit: Let $root == $roots[0].
This is just code motion.
This commit is contained in:
@@ -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{$_}, $_);
|
||||
|
||||
Reference in New Issue
Block a user