diff options
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/dhclient.conf | 8 | ||||
| -rw-r--r-- | etc/rc.diskless1 | 100 | ||||
| -rw-r--r-- | etc/rc.diskless2 | 35 |
3 files changed, 0 insertions, 143 deletions
diff --git a/etc/dhclient.conf b/etc/dhclient.conf deleted file mode 100644 index b3608a3af703..000000000000 --- a/etc/dhclient.conf +++ /dev/null @@ -1,8 +0,0 @@ -# $Id$ -# -# This file is required by the ISC DHCP client. -# See ``man 5 dhclient.conf'' for details. -# -# In most cases an empty file is suffient for most people as the -# defaults are usually fine. -# diff --git a/etc/rc.diskless1 b/etc/rc.diskless1 deleted file mode 100644 index 5ce555f009f1..000000000000 --- a/etc/rc.diskless1 +++ /dev/null @@ -1,100 +0,0 @@ -# -# /etc/rc.diskless - general BOOTP startup -# -# BOOTP has mounted / for us. Assume a read-only mount. We must then -# - figure out where the NFS mount is coming from -# - figure out our IP by querying the interface -# - retarget /conf/ME softlink to proper configuration script directory -# -# It is expected that /etc/fstab and /etc/rc.conf.local will be -# set by the system operator on the server to be softlinks to -# /conf/ME/fstab and /conf/ME/rc.conf.local. The system operator may -# choose to retarget other files as well. The server itself boots -# properly with its default /conf/ME softlink pointing to -# /conf/server.host.name. -# -# During a diskless boot, we retarget the /conf/ME softlink to point -# to /conf/DISKLESS.CLIENT.IP.ADDRESS. Thus, various system config -# files that are softlinks through /conf/ME also get retargeted. -# -# SEE SAMPLE FILES IN /usr/share/examples/diskless. - -# chkerr: -# -# Routine to check for error -# -# checks error code and drops into shell on failure. -# if shell exits, terminates script as well as /etc/rc. - -chkerr() { - if [ $1 != 0 ]; then - echo "$2 failed: dropping into /bin/sh" - /bin/sh - # RESUME - fi -} - -# DEBUGGING -# -set -v - -# Figure out where the root mount is coming from, synthesize a mount -# for /usr and mount it. -# -# e.g. nfs_root might wind up as "A.B.C.D:/" -# -# NOTE! the /usr mount is only temporary so we can access commands necessary -# to retarget /conf/ME. The actual /usr mount should be part of the -# retargeted /etc/fstab. See instructions in /usr/share/examples/diskless. -# -set `/bin/df /` -nfs_root=$8 -mount_nfs -o ro ${nfs_root}/usr /usr - -chkerr $? "mount of /usr" - -# Figure out our interface and IP. -# - -bootp_ifc=`route -n get default | fgrep interface | awk '{ print $2; }'` -bootp_ipa=`ifconfig $bootp_ifc | fgrep inet | head -1 | awk '{ print $2; }'` - -echo "Interface $bootp_ifc IP-Address $bootp_ipa" - -umount /usr - -# retarget /conf/ME -# -# MFS's background process takes a bit to startup. Various config files -# on server should be softlinks through /conf/ME. The server's own /conf/ME -# points to the server's version of the files. -# -# We retarget /conf/ME using a -o union mount. This allows -# us to 'mkdir' over whatever was there previously. -# -# WARNING! null mounts cannot handle mmap, and since many programs -# use mmap (such as 'cp'), we have to copy. - -mount_mfs -s 256 -T qp120at -o union dummy /conf -chkerr $? "MFS mount on /conf" - -mkdir /conf/ME -cp -Rp /conf/$bootp_ipa/* /conf/ME - -# retarget the kernel -# - -sysctl -w kern.bootfile=/conf/ME/kernel - -# Tell /etc/rc to run the specified script after -# it does its mounts but before it does anything -# else. -# -# This script is responsible for setting up the -# diskless mount environment. This can be -# overriden by /conf/ME/rc.conf.local if, for -# example, you do not want to run the standard -# system /etc/rc.diskless2 - -diskless_mount="/etc/rc.diskless2" - diff --git a/etc/rc.diskless2 b/etc/rc.diskless2 deleted file mode 100644 index 37412d31a910..000000000000 --- a/etc/rc.diskless2 +++ /dev/null @@ -1,35 +0,0 @@ -# rc.diskless2 -# - -# If there is a global system configuration file, suck it in. -# -if [ -f /etc/defaults/rc.conf ]; then - . /etc/defaults/rc.conf -elif [ -f /etc/rc.conf ]; then - . /etc/rc.conf -fi - -mount_mfs -s ${var_run_sectors:=2048} -T qp120at dummy /var/run -mount_mfs -s ${var_db_sectors:=16384} -T qp120at dummy /var/db -mount_mfs -s ${var_tmp_sectors:=65536} -T qp120at dummy /var/tmp -mount_mfs -s ${var_spool_sectors:=65536} -T qp120at dummy /var/spool -chmod 755 /var/run -chmod 755 /var/db -chmod 755 /var/spool -chmod 1777 /var/tmp - -if [ ! -h /tmp -a ! -h /var/tmp ]; then - mount_null /var/tmp /tmp -fi - -mkdir /var/spool/mqueue -mkdir /var/spool/lpd -mkdir /var/spool/output -mkdir /var/spool/output/lpd -chown -R root.daemon /var/spool/output -chgrp daemon /var/spool/lpd - -( cd /; find -x dev | cpio -o -H newc ) > /tmp/dev.tmp -mount_mfs -s 4096 -i 512 -T qp120at dummy /dev -( cd /; cpio -i -H newc -d < /tmp/dev.tmp ) - |
