diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-10-25 23:42:38 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-10-25 23:42:38 +0000 |
commit | 0c4b8e58c6f8ec5dd540b01b6732994090ff290b (patch) | |
tree | 934b198f4ac18418f1c4d1965f5c776cd20b914c | |
parent | 0a0faea9f6694018234ebaa86340fc9ae502d0d3 (diff) |
fix install on unit!=0
-rw-r--r-- | sys/arch/i386/stand/installboot/installboot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/stand/installboot/installboot.c b/sys/arch/i386/stand/installboot/installboot.c index 30c065ecaeb..afbea9d6e9c 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.23 1997/10/25 23:04:05 mickey Exp $ */ +/* $OpenBSD: installboot.c,v 1.24 1997/10/25 23:42:37 mickey Exp $ */ /* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */ /* @@ -189,7 +189,7 @@ main(argc, argv) size = sizeof(devno); if(sysctl(mib, 3, &devno, &size, NULL, 0) < 0) err(1, "mapping device number"); - devno = MAKEBOOTDEV(major(devno), 0, 0, minor(devno), 0); + devno = MAKEBOOTDEV(major(devno), 0, 0, DISKUNIT(devno), 0); mib[0] = CTL_MACHDEP; mib[1] = CPU_BIOS; |