diff options
author | phk <phk@FreeBSD.org> | 2003-05-02 19:14:38 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-05-02 19:14:38 +0000 |
commit | 872854ec00e39a7e3d0e6aeb3be907b9f38d5bb3 (patch) | |
tree | d1c6b80853b8d0252fbd74d3814cf5ba84954083 /sbin/bsdlabel/bsdlabel.c | |
parent | cf0500a874823e88211bb0bec298053ceba287c3 (diff) | |
download | FreeBSD-src-872854ec00e39a7e3d0e6aeb3be907b9f38d5bb3.zip FreeBSD-src-872854ec00e39a7e3d0e6aeb3be907b9f38d5bb3.tar.gz |
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.
Diffstat (limited to 'sbin/bsdlabel/bsdlabel.c')
-rw-r--r-- | sbin/bsdlabel/bsdlabel.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sbin/bsdlabel/bsdlabel.c b/sbin/bsdlabel/bsdlabel.c index 445fd1c..92e78d2 100644 --- a/sbin/bsdlabel/bsdlabel.c +++ b/sbin/bsdlabel/bsdlabel.c @@ -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); } |