diff options
author | gordon <gordon@FreeBSD.org> | 2002-05-24 02:28:58 +0000 |
---|---|---|
committer | gordon <gordon@FreeBSD.org> | 2002-05-24 02:28:58 +0000 |
commit | faffa2a33d5f9e1cbde291fc42d4d928e3066ac8 (patch) | |
tree | a14efaa6dbf6cec126fb9f178118ce4a5d5b10c0 /sys/boot/forth/loader.4th | |
parent | f6c55bbe1c2e913e94ff3b086b19f63cb9cc8a60 (diff) | |
download | FreeBSD-src-faffa2a33d5f9e1cbde291fc42d4d928e3066ac8.zip FreeBSD-src-faffa2a33d5f9e1cbde291fc42d4d928e3066ac8.tar.gz |
Add support for reading an additional loader configuration file. By default,
this is called /boot/nextboot.conf. This file is required to have it's first
line be nextboot_enable="YES" for it to be read. Also, this file is
rewritten by the loader to nextboot_enable="NO"<space> after it is read.
This makes it so the file is read exactly once. Finally, the nextboot.conf
is removed shortly after the filesystems are mounted r/w.
Caution should be taken as you can shoot yourself in the foot. This is only
the loader piece. There will be a tool called nextboot(8) that will manage
the nextboot.conf file for you. It is coming shortly.
Reviewed by: dcs
Approved by: jake (mentor)
Diffstat (limited to 'sys/boot/forth/loader.4th')
-rw-r--r-- | sys/boot/forth/loader.4th | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/boot/forth/loader.4th b/sys/boot/forth/loader.4th index 3349c1f..8ffb02d 100644 --- a/sys/boot/forth/loader.4th +++ b/sys/boot/forth/loader.4th @@ -134,6 +134,7 @@ only forth definitions also support-functions : start ( -- ) ( throws: abort & user-defined ) s" /boot/defaults/loader.conf" initialize include_conf_files + include_nextboot_file \ Will *NOT* try to load kernel and modules if no configuration file \ was succesfully loaded! any_conf_read? if @@ -151,6 +152,7 @@ only forth definitions also support-functions : initialize ( -- flag ) s" /boot/defaults/loader.conf" initialize include_conf_files + include_nextboot_file any_conf_read? ; |