summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-04-20 22:06:24 +0000
committerphk <phk@FreeBSD.org>1994-04-20 22:06:24 +0000
commitb2b233fcc4201a70cbf1037569140628ef18c04e (patch)
tree6963051cef098e57e8c52fa24ce5b9d68485030e
parent239ae571f10a3f7885fe0f0fe33a7546b8d7dc17 (diff)
downloadFreeBSD-src-b2b233fcc4201a70cbf1037569140628ef18c04e.zip
FreeBSD-src-b2b233fcc4201a70cbf1037569140628ef18c04e.tar.gz
Adding bootoption '-r' which is "use compiled in root". This allows me to
boot from a floppy and have root on wd2 for instance.
-rw-r--r--sys/i386/boot/biosboot/boot.c4
-rw-r--r--sys/i386/boot/boot.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/i386/boot/biosboot/boot.c b/sys/i386/boot/biosboot/boot.c
index 34aedce..e9d58cd 100644
--- a/sys/i386/boot/biosboot/boot.c
+++ b/sys/i386/boot/biosboot/boot.c
@@ -24,7 +24,7 @@
* the rights to redistribute these changes.
*
* from: Mach, [92/04/03 16:51:14 rvb]
- * $Id: boot.c,v 1.8 1993/10/16 19:11:31 rgrimes Exp $
+ * $Id: boot.c,v 1.9 1994/02/22 22:59:38 rgrimes Exp $
*/
@@ -290,6 +290,8 @@ getbootdev(howto)
if (c=='-')
while ((c = *++ptr) && c!=' ')
switch (c) {
+ case 'r':
+ *howto |= RB_DFLTROOT; continue;
case 'a':
*howto |= RB_ASKNAME; continue;
case 's':
diff --git a/sys/i386/boot/boot.c b/sys/i386/boot/boot.c
index 34aedce..e9d58cd 100644
--- a/sys/i386/boot/boot.c
+++ b/sys/i386/boot/boot.c
@@ -24,7 +24,7 @@
* the rights to redistribute these changes.
*
* from: Mach, [92/04/03 16:51:14 rvb]
- * $Id: boot.c,v 1.8 1993/10/16 19:11:31 rgrimes Exp $
+ * $Id: boot.c,v 1.9 1994/02/22 22:59:38 rgrimes Exp $
*/
@@ -290,6 +290,8 @@ getbootdev(howto)
if (c=='-')
while ((c = *++ptr) && c!=' ')
switch (c) {
+ case 'r':
+ *howto |= RB_DFLTROOT; continue;
case 'a':
*howto |= RB_ASKNAME; continue;
case 's':
OpenPOWER on IntegriCloud