diff options
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/disklabel/editor.c | 9 |
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; |