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:
parent
798b27f1f2
commit
607f853af2
@ -619,13 +619,6 @@ makebootarea(void *boot, struct disklabel *dp, int f)
|
|||||||
}
|
}
|
||||||
|
|
||||||
(void)close(b);
|
(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);
|
return (lp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user