This discussion is archived
6 Replies Latest reply: Oct 26, 2012 1:21 AM by 924908 RSS

Solaris 11 / AI / finish script

924908 Newbie
Currently Being Moderated
AFAIK in Sol11 with Automated Installer the finish script was cancelled.
So my question is what is the new method?

Our finish scripts ( Sol 10 ) include something like:

...
mkdir -p /a/etc/scripts
...

How to implement this with AI in Sol11?

THX!

Heinz
  • 1. Re: Solaris 11 / AI / finish script
    901352 Newbie
    Currently Being Moderated
    Please see Transitioning From Oracle Solaris 10 JumpStart to Oracle Solaris 11 Automated Installer:
    http://www.oracle.com/pls/topic/lookup?ctx=solaris11&id=MFJAI

    Instead of finish scripts, create an SMF service that runs once at first boot and executes a user-defined script.

    Most client system configuration is now done with SMF profiles. See Chapter 3 of the Jumpstart to AI guide cited above, and see Part III of Installing Oracle Solaris 11 Systems:
    http://www.oracle.com/pls/topic/lookup?ctx=solaris11&id=IOSUI
  • 2. Re: Solaris 11 / AI / finish script
    924908 Newbie
    Currently Being Moderated
    Sorry,

    Oracle can't be serious!

    For a one liner in a finish script I have to create a SMF service?
    Sorry, it's to crack a nut with a sledgehammer!

    Thank you for the information.

    Regards,
    Heinz
  • 3. Re: Solaris 11 / AI / finish script
    901352 Newbie
    Currently Being Moderated
    You said your finish script includes, for example, a mkdir. I am saying the entire finish script needs to be re-examined. What is the script doing? Can you do that with SMF configuration profiles, profile templating, or derived manifests as described in the Automated Installer section of the installation guide? You might not need the finish script at all.
  • 4. Re: Solaris 11 / AI / finish script
    924908 Newbie
    Currently Being Moderated
    Ok,

    sorry for the delay!

    Another example from our finish script:

    echo "Preparing TSM for installation..."
    mkdir -p /a/soft/TSM
    cp -p ${SI_CONFIG_DIR}/Software/TSM/TSM-Client.tar.Z /a/soft/TSM
    cp -p ${SCRIPT_DIR}/TSM/install-TSM.sh /a/etc/init.d
    cp -p ${SCRIPT_DIR}/TSM/S85install-TSM /a/etc/rc3.d

    First step is to create a directory, second step is to copy the software and the last two steps is to copy the install scripts.
    In other cases we only need step 1 and step 2 because we install the software manually.

    So, the question is: How can that be done with AI?

    Regards
    Heinz
  • 5. Re: Solaris 11 / AI / finish script
    abrante Pro
    Currently Being Moderated
    Well, as mentioned you will have to create a package which contains your finishscript. When it comes to your example you just would do a:

    mkdir -p /soft/TSM

    .. since /a is not used in S11.

    When it comes to the files you copy, you either attach the files in your package directly, or you copy them of a NFS share..

    .7/M.
  • 6. Re: Solaris 11 / AI / finish script
    924908 Newbie
    Currently Being Moderated
    So far so good,

    I think I have to study the new AI architecture at a glance.

    This seems to be "a long and winding road" ( Thank you Paul ;) ).

    I'll keep you informed.

    Regards,
    Heinz

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points