diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-23 14:31:50 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-23 14:31:50 +0000 |
commit | 51cb729054a98185ef79f26dfa84d0b9f42db7b8 (patch) | |
tree | e246b826577f1281dfed7de6e7f1cb4671080efd /sys/arch | |
parent | 5683ca5ed8afe2eda83ae603d88c3152a11e761c (diff) |
don't use bios geometry for floppy and psudo-disks
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/stand/installboot/installboot.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/arch/i386/stand/installboot/installboot.c b/sys/arch/i386/stand/installboot/installboot.c index 3063302c72b..a1a068c5bd3 100644 --- a/sys/arch/i386/stand/installboot/installboot.c +++ b/sys/arch/i386/stand/installboot/installboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: installboot.c,v 1.5 1997/08/22 20:03:17 mickey Exp $ */ +/* $OpenBSD: installboot.c,v 1.6 1997/08/23 14:31:49 mickey Exp $ */ /* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */ /* @@ -403,11 +403,13 @@ loadblocknums(boot, devfd) printf("Will load %d blocks of size %d each.\n", ndb, fs->fs_bsize); - /* adjust disklabel w/ synthetic geometry */ - if (nsectors > 0) - dl.d_nsectors = nsectors; - if (heads > 0) - dl.d_secpercyl = dl.d_nsectors * heads; + if (dl.d_type != 0 && dl.d_type < DTYPE_FLOPPY) { + /* adjust disklabel w/ synthetic geometry */ + if (nsectors > 0) + dl.d_nsectors = nsectors; + if (heads > 0) + dl.d_secpercyl = dl.d_nsectors * heads; + } /* * Get the block numbers; we don't handle fragments |