From owner-cvs-all Fri Sep 8 14:12:30 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5FF3837B50B; Fri, 8 Sep 2000 14:12:26 -0700 (PDT) Received: (from dcs@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA50200; Fri, 8 Sep 2000 14:11:58 -0700 (PDT) (envelope-from dcs@FreeBSD.org) Message-Id: <200009082111.OAA50200@freefall.freebsd.org> From: "Daniel C. Sobral" Date: Fri, 8 Sep 2000 14:11:58 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/boot/forth loader.4th X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG dcs 2000/09/08 14:11:58 PDT Modified files: sys/boot/forth loader.4th Log: Enhance boot-conf. Now boot-conf can also receive parameters to be passed to the kernel being booted. The syntax is the same as in the boot command, so one boots /kernel.OLD in single-user mode by typing: boot-conf /kernel.OLD -s instead of boot-conf -s /kernel.OLD The syntax still supports use of directory instead of file name, so boot-conf kernel.OLD -s may be used to boot /boot/kernel.OLD/kernel.ko in single-user mode. Notice that if one passes a flag to boot-conf, it will override the flags set in .conf files, but only for that invocation. If the user aborts the countdown and tries again without passing any flags, the flags set in .conf files will be used. Some factorization was done in the process of enhancing boot-conf, as it has been growing steadly as features are getting added, becoming too big for a Forth word. It still could do with more factorization, as a matter of fact. Override the builtin "boot" with something based on boot-conf. It will behave exactly like boot-conf, but booting directly instead of going through autoboot. Since we are now pairing kernel and module set in the same directory, this change to boot makes sense. Revision Changes Path 1.11 +119 -25 src/sys/boot/forth/loader.4th To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message