From 607f853af2b1361f5fb0849d54444663f2e73372 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Fri, 2 May 2003 19:14:38 +0000 Subject: [PATCH] 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. --- sbin/bsdlabel/bsdlabel.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sbin/bsdlabel/bsdlabel.c b/sbin/bsdlabel/bsdlabel.c index 445fd1cf37b7..92e78d2dcb5c 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); }