summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-05-02 19:14:38 +0000
committerphk <phk@FreeBSD.org>2003-05-02 19:14:38 +0000
commit872854ec00e39a7e3d0e6aeb3be907b9f38d5bb3 (patch)
treed1c6b80853b8d0252fbd74d3814cf5ba84954083 /sbin
parentcf0500a874823e88211bb0bec298053ceba287c3 (diff)
downloadFreeBSD-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')
-rw-r--r--sbin/bsdlabel/bsdlabel.c7
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);
}
OpenPOWER on IntegriCloud