Solaris 10 Jumpstart problem
#1
Scooby Senior
Thread Starter
iTrader: (1)
Join Date: Nov 2000
Location: Wildberg, Germany/Reading, UK
Posts: 9,706
Likes: 0
Received 73 Likes
on
54 Posts
Solaris 10 Jumpstart problem
Everything works fine and the system installs perfectly in unattended mode but the problem I get is after the installation.
my finish script runs and completes ok then the machine should reboot and come up, this works fine with solaris 8 and 9 but soalris 10 throws me a last question which needs a yes no answer and I can not figure out how to automate this answer so the entire installation is unnatended.
the question it asks is about NFS 4
"you have a domain name set do you want to use it or not?"
or something like that anyway.
anybody got any ideas how to either answer this question automatically or stop it from asking it? of course I havea domain name set and of course I want to use it otherwise I would not have set it in the first place would I??
It is really important I resolve this issue as it is screwing up our automated nightly BAT tests.
Cheers
Steve
my finish script runs and completes ok then the machine should reboot and come up, this works fine with solaris 8 and 9 but soalris 10 throws me a last question which needs a yes no answer and I can not figure out how to automate this answer so the entire installation is unnatended.
the question it asks is about NFS 4
"you have a domain name set do you want to use it or not?"
or something like that anyway.
anybody got any ideas how to either answer this question automatically or stop it from asking it? of course I havea domain name set and of course I want to use it otherwise I would not have set it in the first place would I??
It is really important I resolve this issue as it is screwing up our automated nightly BAT tests.
Cheers
Steve
Last edited by Wurzel; 18 January 2006 at 04:18 PM.
#4
Scooby Senior
Thread Starter
iTrader: (1)
Join Date: Nov 2000
Location: Wildberg, Germany/Reading, UK
Posts: 9,706
Likes: 0
Received 73 Likes
on
54 Posts
Aparently this is a solution to the problem but not exactly what I was looking for.
You need to add this to your finish script so thatit sets the NFS4 Domain name.
set_nfs4_domain ()
{
echo ""
echo "----------------------------------------------"
echo " Setting NFSv4 domain ..."
echo ""
if [ "${VERSION}" != "5.10" ]; then
return
fi
#
# Specify the desired NFSv4 domain (ie. foo.bar)
#
NFS4_DOMAIN=telering
FILE=${BASE}/etc/default/nfs
STATE=${BASE}/etc/.NFS4inst_state.domain
VAR=NFSMAPID_DOMAIN
VALUE=${NFS4_DOMAIN}
#
# The variable (as delivered by the initial install)
# is commented out; uncomment to activate it and set
# it to the specified value.
#
TFILE=${FILE}.$$
sed -e "s/^#[ ]*${VAR}=.*\$/${VAR}=${VALUE}/" ${FILE} > ${TFILE}
mv ${TFILE} ${FILE}
#
# Reset the permissions on the new /etc/default/nfs
# file to whatever it was set to during the install
#
IFILE=`echo ${FILE} | sed -e "s|^${BASE}||g"`
PERM=`grep "^${IFILE} e" ${BASE}/var/sadm/install/contents |
(read f1 f2 f3 f4 f5 ; echo $f4)`
chmod ${PERM} ${FILE}
touch ${STATE}
}
You need to add this to your finish script so thatit sets the NFS4 Domain name.
set_nfs4_domain ()
{
echo ""
echo "----------------------------------------------"
echo " Setting NFSv4 domain ..."
echo ""
if [ "${VERSION}" != "5.10" ]; then
return
fi
#
# Specify the desired NFSv4 domain (ie. foo.bar)
#
NFS4_DOMAIN=telering
FILE=${BASE}/etc/default/nfs
STATE=${BASE}/etc/.NFS4inst_state.domain
VAR=NFSMAPID_DOMAIN
VALUE=${NFS4_DOMAIN}
#
# The variable (as delivered by the initial install)
# is commented out; uncomment to activate it and set
# it to the specified value.
#
TFILE=${FILE}.$$
sed -e "s/^#[ ]*${VAR}=.*\$/${VAR}=${VALUE}/" ${FILE} > ${TFILE}
mv ${TFILE} ${FILE}
#
# Reset the permissions on the new /etc/default/nfs
# file to whatever it was set to during the install
#
IFILE=`echo ${FILE} | sed -e "s|^${BASE}||g"`
PERM=`grep "^${IFILE} e" ${BASE}/var/sadm/install/contents |
(read f1 f2 f3 f4 f5 ; echo $f4)`
chmod ${PERM} ${FILE}
touch ${STATE}
}
#5
Scooby Regular
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes
on
0 Posts
I have seen some interesting things when using SVM to mirror the root disk as part of a S10 jumpstart configuration. When i get a mo I will add some details.
Dave
Dave
#7
Scooby Regular
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes
on
0 Posts
Originally Posted by druddle
I have seen some interesting things when using SVM to mirror the root disk as part of a S10 jumpstart configuration. When i get a mo I will add some details.
Dave
Dave
I've only blagged one box for sol10 yet..this year I'll get the buggers off v9
Are you using the JET framework or pure jumpstart ?
Steve
Thread
Thread Starter
Forum
Replies
Last Post