From f10d3a9382792f4ba133f40253da1cc6ad92bb2a Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Sun, 17 Jan 1999 03:32:07 +0000 Subject: [PATCH] Add hooks for starting vinum at boot time. Set the variable vinum_slices to the names of all slices (block device) which are under the control of vinum. The configuration will be read in from each in turn, starting with the most recently updated. Reviewed-by: jkh --- etc/rc | 11 ++++++++++- etc/rc.conf | 3 ++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/etc/rc b/etc/rc index 806ac86dd9e..a30cd04595a 100644 --- a/etc/rc +++ b/etc/rc @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: rc,v 1.165 1999/01/10 22:06:22 n_hibma Exp $ +# $Id: rc,v 1.166 1999/01/11 09:07:38 asami Exp $ # From: @(#)rc 5.27 (Berkeley) 6/5/91 # System startup script run by init on autoboot @@ -27,6 +27,15 @@ if [ -f /etc/ccd.conf ]; then ccdconfig -C fi +if [ -n $vinum_slices ]; then + if [ -r /modules/vinum.ko ]; then # jkh paranoia + kldload vinum + vinum read $vinum_slices + else + echo "Can't find /modules/vinum.ko" + fi +fi + swapon -a if [ $1x = autobootx ]; then diff --git a/etc/rc.conf b/etc/rc.conf index a1f95560953..7a3d5ea067b 100644 --- a/etc/rc.conf +++ b/etc/rc.conf @@ -6,7 +6,7 @@ # # All arguments must be in double or single quotes. # -# $Id: rc.conf,v 1.74 1999/01/13 08:20:54 hm Exp $ +# $Id: rc.conf,v 1.75 1999/01/13 17:32:37 joerg Exp $ ############################################################## ### Important initial Boot-time options ##################### @@ -194,6 +194,7 @@ ldconfig_paths_aout="/usr/lib/compat/aout /usr/X11R6/lib/aout /usr/local/lib/aou kern_securelevel_enable="NO" # kernel security level (see init(8)), kern_securelevel="-1" # range: -1..3 ; `-1' is the most insecure update_motd="YES" # update version info in /etc/motd (or NO) +vinum_slices="" # put in names of vinum slices to enable vinum ############################################################## ### Allow local configuration override at the very end here ##