Commit 587c72ea authored by Mike Hibler's avatar Mike Hibler

Account for use of "ada" rather than "da" in FBSD 10 PVHVM.

parent 984bec03
......@@ -408,7 +408,7 @@ sub doboot()
my $vm_guest = `sysctl -n kern.vm_guest`;
if ($vm_guest =~ /^xen$/) {
$XENVM = 1;
print "Running sinde a XEN VM\n";
print "Running inside a XEN VM\n";
}
}
......@@ -3593,6 +3593,11 @@ sub FindExtraFSConfig($)
foreach my $disk (@disks) {
my ($dev,$path) = split(":", $disk);
if (defined($path) && $path eq $mountpoint) {
# FreeBSD PVHVMs use "ada" rather than "da"
if ($XENVM && $FBSD_VERSION >= 10.0 &&
$dev =~ /^da(\d+)$/) {
$dev = "ada$1";
}
return $dev;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment