diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-06-09 17:18:37 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-06-09 17:18:37 +0000 |
commit | f2150152d502683bfa6f45e4203ecd1b024919d1 (patch) | |
tree | 3c1160437e157ad74ce9a1346b4557f1a12056e0 | |
parent | 5d476cd4253401275dee9e56b3841c439b7fdce6 (diff) |
silently whack wrong-sized C partitions
-rw-r--r-- | sys/kern/subr_disk.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index 325116a5839..cc8b2dd29d9 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_disk.c,v 1.55 2007/06/09 06:03:24 deraadt Exp $ */ +/* $OpenBSD: subr_disk.c,v 1.56 2007/06/09 17:18:36 deraadt Exp $ */ /* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */ /* @@ -229,11 +229,8 @@ disklabeltokernlabel(struct disklabel *lp) } /* XXX this should not be here */ - if (DL_GETPOFFSET(&lp->d_partitions[RAW_PART]) != 0) { - printf("disklabeltokernlabel: Your raw partition MUST start at 0\n"); - DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); - DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); - } + DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); } /* |