summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-11-24 15:25:17 +0000
committerpjd <pjd@FreeBSD.org>2010-11-24 15:25:17 +0000
commitd97fcd46032f74bc88f2046d9bc03c146fde714f (patch)
treead628bba1a1e2e9a452edadd44528fd95f9dab59
parent545c74c108d341dc6bb0a5ed4c32265504bf14d4 (diff)
downloadFreeBSD-src-d97fcd46032f74bc88f2046d9bc03c146fde714f.zip
FreeBSD-src-d97fcd46032f74bc88f2046d9bc03c146fde714f.tar.gz
Add gptboot_enable rc variable, which allows to turn gptboot reporting off in
case user wants to implement his own actions and doesn't want the attributes to vanish. Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com MFC after: 3 days
-rw-r--r--etc/defaults/rc.conf2
-rwxr-xr-xetc/rc.d/gptboot1
-rw-r--r--share/man/man5/rc.conf.513
3 files changed, 15 insertions, 1 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index 7109086..e542f9b 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -58,6 +58,8 @@ rc_conf_files="/etc/rc.conf /etc/rc.conf.local"
# ZFS support
zfs_enable="NO" # Set to YES to automatically mount ZFS file systems
+gptboot_enable="YES" # GPT boot success/failure reporting.
+
# Experimental - test before enabling
gbde_autoattach_all="NO" # YES automatically mounts gbde devices from fstab
gbde_devices="NO" # Devices to automatically attach (list, or AUTO)
diff --git a/etc/rc.d/gptboot b/etc/rc.d/gptboot
index ace94b8..abfcaa1 100755
--- a/etc/rc.d/gptboot
+++ b/etc/rc.d/gptboot
@@ -34,6 +34,7 @@
. /etc/rc.subr
name="gptboot"
+rcvar=`set_rcvar`
start_cmd="gptboot_report"
gptboot_report()
diff --git a/share/man/man5/rc.conf.5 b/share/man/man5/rc.conf.5
index 2a4ff49..990222f 100644
--- a/share/man/man5/rc.conf.5
+++ b/share/man/man5/rc.conf.5
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd November 13, 2010
+.Dd November 24, 2010
.Dt RC.CONF 5
.Os
.Sh NAME
@@ -1575,6 +1575,17 @@ If set to
.Pa /etc/rc.d/zfs
will attempt to automatically mount ZFS file systems and initialize ZFS volumes
(ZVOLs).
+.It Va gptboot_enable
+.Pq Vt bool
+If set to
+.Dq Li YES ,
+.Pa /etc/rc.d/gptboot
+will log if the system successfully (or not) booted from a GPT partition,
+which had the
+.Ar bootonce
+attribute set using
+.Xr gpart 8
+utility.
.It Va gbde_autoattach_all
.Pq Vt bool
If set to
OpenPOWER on IntegriCloud