From 872854ec00e39a7e3d0e6aeb3be907b9f38d5bb3 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 2 May 2003 19:14:38 +0000 Subject: 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(-) (limited to 'sbin') 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); } -- cgit v1.1