# Autofs # Assuming we have everything correct # the automount tree is controlled via LDAP and can be found in # ldap:///ou=autofs,$DITNAME
echo "%Post: Automount"
if [ ! -x $FSROOT ]; then
mkdir $FSROOT
fi
chkconfig --level 345 autofs on
#
if [ "$DIST" == "WhiteBoxEnterprise" ]; then
#
# There are several features with the default autofs
# mainly it doesn't handle keys with \* or ${AA} in
#
rpm -U /mnt/source/kickstart/rpms/redhat/autofs-4.1.3-12.i386.rpm
fi
#
#
# Thus we need to fix a parameter
#
mv /etc/sysconfig/autofs /etc/sysconfig/autofs-$VERSION
sed -e "s/^\(LOCALOPTIONS=\).*/\1\'-DDIST=${OS}\'/" \
/etc/sysconfig/autofs-$VERSION >/etc/sysconfig/autofs
#
#
cat >>/etc/rc.d/rc.local <<EOF
# ---$VERSION fix
# We don't really want to change the running order of the
# Redhat/Fedora distribution. By starting autofs again
# it is possible for it to collect the autofs maps held in LDAP
# and served by the local slapd daemon
service autofs start
EOF
# # This is an example /export/opt tree which is automounted to $FSROOT/opt # # |-- bonita # | |-- Linux -> non-vendor # | |-- SunOS -> non-vendor # | `-- non-vendor # | |-- nodist # | | |-- athlon -> noarch # | | |-- i686 -> noarch # | | |-- noarch # | | | |-- 1.4 # | | | | |-- WEB-INF # | | | | |-- cgi-bin # | | | | |-- etc # | | | | | |-- init.d # | | | | | | `-- bonita.sh # | | | | | `-- profile # | | | | `-- public_html # | | | `-- current -> 1.4 # | | `-- sun4u -> noarch # | |-- rhel3 -> nodist # | |-- rhel4 -> nodist # | `-- sol8 -> nodist # | # `-- oracle # |-- Linux # | |-- rhel3 # | | |-- i686 -> x86 # | | `-- x86 # | | |-- 10g # | | | |-- etc # | | | | |-- init.d # | | | | | `-- oracle.sh # | | | | `-- profile # | | | `-- var -> /var/opt/oracle/10g # | | `-- current -> 10g # | `-- rhel4 # `-- SunOS # `-- sol8 # `-- sun4u # |-- 10g # `-- current -> 10g # # Please NOTE that all of /export/opt is exported READ-ONLY # hence the need for all write operations to be done to # # var which is a symbolic link to the local /var # the contents of this var directory need to be created by the # ./etc/init.d/app.sh script #
Marked up in XHTML - ©2005 Thoughtful Solutions Ltd.