Use bsdlabel as we don't have hardlink disklabel -> bsdlabel on MIPS.

Sponsored by:	DARPA, AFRL
Sponsored by:	HEIF5
This commit is contained in:
Ruslan Bukin 2016-09-26 14:01:41 +00:00
parent 60e5fa86df
commit 5b1b1405e3

View File

@ -14,7 +14,7 @@ END { system "mdconfig -du$unit" if defined $unit };
sub setsize {
my ($partszMB, $unitszMB) = @_;
open my $fd, "|-", "disklabel -R md$unit /dev/stdin" or die;
open my $fd, "|-", "bsdlabel -R md$unit /dev/stdin" or die;
print $fd "a: ", ($partszMB * BLKS_PER_MB), " 0 4.2BSD 1024 8192\n";
print $fd "c: ", ($unitszMB * BLKS_PER_MB), " 0 unused 0 0\n";
close $fd;