From owner-freebsd-questions Sat Dec 24 13:41:35 1994 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id NAA02745 for questions-outgoing; Sat, 24 Dec 1994 13:41:35 -0800 Received: from hda.com (hda.com [199.232.40.182]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id VAA02738 for ; Sat, 24 Dec 1994 21:41:31 GMT Received: (dufault@localhost) by hda.com (8.6.9/8.3) id QAA22945; Sat, 24 Dec 1994 16:42:53 -0500 From: Peter Dufault Message-Id: <199412242142.QAA22945@hda.com> Subject: Re: Kernel boot flags To: markd@grizzly.com (Mark Diekhans) Date: Sat, 24 Dec 1994 16:42:52 -0500 (EST) Cc: freebsd-questions@freebsd.org In-Reply-To: <199411301757.JAA02139@Grizzly.COM> from "Mark Diekhans" at Nov 30, 94 09:57:41 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 1408 Sender: questions-owner@freebsd.org Precedence: bulk Mark Diekhans writes: > > > I am unable to find any documentation of the flags that can be specified > at boot time. Any pointers to where they are documented? The boot flags are defined in /usr/include/sys/reboot.h, and some are set up in boot.c in the booter. With the flags that boot.c reads you have: -a RB_ASKNAME 0x01 /* ask for file name to reboot from */ -s RB_SINGLE 0x02 /* reboot to single user only */ RB_NOSYNC 0x04 /* dont sync before reboot */ -b RB_HALT 0x08 /* don't reboot, just halt */ RB_INITNAME 0x10 /* name given for /etc/init (unused) */ -r RB_DFLTROOT 0x20 /* use compiled-in rootdev */ -d RB_KDB 0x40 /* give control to kernel debugger */ RB_RDONLY 0x80 /* mount root fs read-only */ RB_DUMP 0x100 /* dump kernel memory before reboot */ RB_MINIROOT 0x200 /* mini-root present in memory at boot time */ -c RB_CONFIG 0x400 /* invoke user configuration routing */ -v RB_VERBOSE 0x800 /* print all potentially useful info */ Once the kernel is booted control is transferred to the routines in /usr/src/sys/i386/i386 that interpret the flags. I only use -s and -d, so I'm not sure how well the rest of these things work. Peter -- Peter Dufault Real Time Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936 dufault@hda.com Fax: 508 433 5267 ++++ New e-mail address. E-mail problems? Tell hdslip@iii.net