summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-08-28 20:19:55 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-08-28 20:19:55 +0000
commitc1bbdeb76233aa1df2000866734478740258b887 (patch)
tree6beb29fd6ba0bb96841609626e517f81c38d2480 /sbin
parent138d34619d5db69819e8cc980af7c208adc74ed1 (diff)
sparcs cannot handle booting from > 8k block partitions, so set the root
partition block size back down.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/disklabel/editor.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c
index 6a853bb2da4..de1b4003c12 100644
--- a/sbin/disklabel/editor.c
+++ b/sbin/disklabel/editor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: editor.c,v 1.88 2003/07/29 18:38:35 deraadt Exp $ */
+/* $OpenBSD: editor.c,v 1.89 2003/08/28 20:19:54 tedu Exp $ */
/*
* Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -17,7 +17,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: editor.c,v 1.88 2003/07/29 18:38:35 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: editor.c,v 1.89 2003/08/28 20:19:54 tedu Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -514,7 +514,12 @@ editor_add(struct disklabel *lp, char **mp, u_int32_t *freep, char *p)
pp->p_size = *freep;
pp->p_offset = next_offset(lp, &pp->p_size);
pp->p_fstype = partno == 1 ? FS_SWAP : FS_BSDFFS;
+#ifdef __sparc__
+ /* can't boot from > 8k boot blocks */
+ pp->p_fsize = partno == 0 ? 1024 : 2048;
+#else
pp->p_fsize = 2048;
+#endif
pp->p_frag = 8;
pp->p_cpg = 16;
old_offset = pp->p_offset;