diff options
author | phk <phk@FreeBSD.org> | 1999-05-09 16:56:09 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-05-09 16:56:09 +0000 |
commit | 3e9a4fabc345d4d09660888dc13b2a5515b3b35b (patch) | |
tree | b113b9760c6076f78c81c482fbdae496277b1256 /sys | |
parent | 1ce3de940971da9b634294ce616e1806cd74830b (diff) | |
download | FreeBSD-src-3e9a4fabc345d4d09660888dc13b2a5515b3b35b.zip FreeBSD-src-3e9a4fabc345d4d09660888dc13b2a5515b3b35b.tar.gz |
Oops. If ROOTDEVNAME isn't defined, have -r call -a.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/autoconf.c | 6 | ||||
-rw-r--r-- | sys/i386/i386/autoconf.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/sys/amd64/amd64/autoconf.c b/sys/amd64/amd64/autoconf.c index 236d1c3..0dff498 100644 --- a/sys/amd64/amd64/autoconf.c +++ b/sys/amd64/amd64/autoconf.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91 - * $Id: autoconf.c,v 1.118 1999/05/09 07:56:36 phk Exp $ + * $Id: autoconf.c,v 1.119 1999/05/09 16:45:49 phk Exp $ */ /* @@ -437,7 +437,11 @@ setroot() char *sname; if (boothowto & RB_DFLTROOT) { +#ifdef ROOTDEVNAME setrootbyname(ROOTDEVNAME); +#else + setconf(); +#endif return; } if ((bootdev & B_MAGICMASK) != B_DEVMAGIC) diff --git a/sys/i386/i386/autoconf.c b/sys/i386/i386/autoconf.c index 236d1c3..0dff498 100644 --- a/sys/i386/i386/autoconf.c +++ b/sys/i386/i386/autoconf.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91 - * $Id: autoconf.c,v 1.118 1999/05/09 07:56:36 phk Exp $ + * $Id: autoconf.c,v 1.119 1999/05/09 16:45:49 phk Exp $ */ /* @@ -437,7 +437,11 @@ setroot() char *sname; if (boothowto & RB_DFLTROOT) { +#ifdef ROOTDEVNAME setrootbyname(ROOTDEVNAME); +#else + setconf(); +#endif return; } if ((bootdev & B_MAGICMASK) != B_DEVMAGIC) |