Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Solaris 10 Jumpstart problem

Status
Not open for further replies.

Number18

Technical User
Jan 18, 2006
13
US
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.

I need to answer yes or no to this question before the install/reimage finishes, which is a pain in the rear considering I need this to be a fully unattended install.

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
 
Hi!

I'm doing that in my finish script

Code:
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}
}

br,
allesmueller
 
Hi Allesmueller

please can you show me your finish Script as I have added the above code to mine and it has not made any difference.

I would mail you directly but I can't seem to find anyway of viewling your profile or sending you a mail.

Cheers

Steve

steve dot luther at hp dot com
 
Steve,

sorry that I forgot to mention that one has to
call that shell function later in the finish script...

set_nfs4_domain

you didn't do that, right?

I'm currently at home and have no access to the full script.


HTH,
allesmueller
 
allesmüller

Thanks for the extra info, and no I had not set it to call teh she function. I dod wonder how it worked but decided that I would try it as is.

If you could tell me how you did it tomorrow maybe I would appreciate it, I am not a shell programmer so am unsure how to do it.

Cheers
Steve
 
hi Steve,

just add the function like in my 1st post
and then call it later somewhere at the end
of your finish script with the defined name

Code:
set_nfs4_domain

ouch, I've missed something - sorry,
you have to set some variables or replace
with proper values first to get the function working ...
VERSION
BASE


to be honest, I did not create the snipplet myself,
but I could not find where I copied it from -
I think it was somewhere in forum at sun.com.
I don't want to post the whole script since
it is very customized to our environment ...


br,
allesmueller

PS: hp set's up solaris?! stay with ignite - LOL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top