mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
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
This commit is contained in:
parent
ab13b06dc0
commit
f10d3a9382
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=42741
11
etc/rc
11
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
|
||||
|
@ -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 ##
|
||||
|
Loading…
Reference in New Issue
Block a user