summaryrefslogtreecommitdiffstats
path: root/sys/boot/forth/loader.conf
diff options
context:
space:
mode:
authorgordon <gordon@FreeBSD.org>2002-05-24 02:28:58 +0000
committergordon <gordon@FreeBSD.org>2002-05-24 02:28:58 +0000
commitfaffa2a33d5f9e1cbde291fc42d4d928e3066ac8 (patch)
treea14efaa6dbf6cec126fb9f178118ce4a5d5b10c0 /sys/boot/forth/loader.conf
parentf6c55bbe1c2e913e94ff3b086b19f63cb9cc8a60 (diff)
downloadFreeBSD-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.conf')
-rw-r--r--sys/boot/forth/loader.conf4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/boot/forth/loader.conf b/sys/boot/forth/loader.conf
index 4b636f8..87a1668 100644
--- a/sys/boot/forth/loader.conf
+++ b/sys/boot/forth/loader.conf
@@ -22,7 +22,9 @@ userconfig_script_load="NO"
userconfig_script_name="/boot/kernel.conf"
userconfig_script_type="userconfig_script"
-loader_conf_files="/boot/device.hints /boot/loader.conf /boot/loader.conf.local /boot/nextboot.conf"
+loader_conf_files="/boot/device.hints /boot/loader.conf /boot/loader.conf.local"
+nextboot_conf="/boot/nextboot.conf"
+nextboot_enable="NO"
verbose_loading="NO" # Set to YES for verbose loader output
OpenPOWER on IntegriCloud