Remove the well-intentioned, but ill thought out check which prevents us

from dd(1)'ing the boot code off one drive and have bsdlabel write it
on another.
This commit is contained in:
Poul-Henning Kamp 2003-05-02 19:14:38 +00:00
parent 798b27f1f2
commit 607f853af2

View File

@ -619,13 +619,6 @@ makebootarea(void *boot, struct disklabel *dp, int f)
}
(void)close(b);
/*
* Make sure no part of the bootstrap is written in the area
* reserved for the label.
*/
for (p = (char *)lp; p < (char *)lp + sizeof(struct disklabel); p++)
if (*p)
errx(2, "bootstrap doesn't leave room for disk label");
return (lp);
}