Jumpstart and Applying Recommended Patch Cluster


 
Thread Tools Search this Thread
Operating Systems Solaris Jumpstart and Applying Recommended Patch Cluster
# 1  
Old 12-18-2011
Bug Jumpstart and Applying Recommended Patch Cluster

I'm trying to setup our jumpstart server to automatically apply the latest patch cluster during installs, but I'm running into an issue. Every time Jumpstart runs it has this error. Obviously it's processing the patch_order file, so I'm not sure what I'm missing.

Code:
==============================================================================
secure.driver: Finish script: install-recommended-patches.fin
==============================================================================
Installing Software: Solaris Recommended and Security Patch Cluster
Installing the patches from the directory, /a//tmp/jass-patches/10_Recommended.
[ERR ] Directory, /a//tmp/jass-patches/10_Recommended/120900-04, was not found.
[ERR ] Directory, /a//tmp/jass-patches/10_Recommended/121133-02, was not found.
[ERR ] Directory, /a//tmp/jass-patches/10_Recommended/119254-81, was not found.
[ERR ] Directory, /a//tmp/jass-patches/10_Recommended/119317-01, was not found.
[ERR ] Directory, /a//tmp/jass-patches/10_Recommended/121296-01, was not found.
[ERR ] Directory, /a//tmp/jass-patches/10_Recommended/138215-01, was not found.
[ERR ] Directory, /a//tmp/jass-patches/10_Recommended/127884-01, was not found.
[ERR ] Directory, /a//tmp/jass-patches/10_Recommended/145044-03, was not found.
[ERR ] Directory, /a//tmp/jass-patches/10_Recommended/142251-02, was not found.
[ERR ] Directory, /a//tmp/jass-patches/10_Recommended/125555-10, was not found.
[ERR ] Directory, /a//tmp/jass-patches/10_Recommended/118367-04, was not found.
[ERR ] Directory, /a//tmp/jass-patches/10_Recommended/118666-32, was not found.
[ERR ] Directory, /a//tmp/jass-patches/10_Recommended/118667-32, was not found.
[ERR ] Directory, /a//tmp/jass-patches/10_Recommended/118705-02, was not found.
[ERR ] Directory, /a//tmp/jass-patches/10_Recommended/118706-01, was not found.

I am using the default install-recommended-patches.fin that comes with Jass under the /opt/SUNWjass/Finish directory, and I'm placing the 10_Recommended patch cluster under /opt/SUNWjass/Patches.

The /opt/SUNWjass/Drivers/user.init file seems correct to me:

Code:
# pwd
/opt/SUNWjass/Drivers
# tail -20 user.init
# The JASS Development Team would like to offer special thanks to Pierre
# Zimmermann the JASS_SERVER concept.
if [ "${JASS_STANDALONE}" != "1" ]; then
   JASS_SERVER="`df -k /tmp/install_config | tail -1 | nawk -F: '{ print $1 }'`"
   export JASS_SERVER
   if [ "${JASS_PACKAGE_MOUNT}" = "" ]; then
      JASS_PACKAGE_MOUNT="${JASS_SERVER}:/opt/SUNWjass/Packages"
      # echo "JASS_PACKAGE_MOUNT is set to ${JASS_PACKAGE_MOUNT}."
   fi
   export JASS_PACKAGE_MOUNT
   if [ "${JASS_PATCH_MOUNT}" = "" ]; then
      JASS_PATCH_MOUNT="${JASS_SERVER}:/opt/SUNWjass/Patches"
      # echo "JASS_PATCH_MOUNT is set to ${JASS_PATCH_MOUNT}."
   fi
   export JASS_PATCH_MOUNT
fi
#

I am able to mount and install packages from $JASS_PACKAGE_MOUNT with no problems, so I can't figure out what the problem is with the $JASS_PATCH_MOUNT. All other Jumpstart install packages and configurations I've setup (including Veritas, Powerpath, sudo, and numerous other packages) I've been able to setup successfully. For some reason I can't seem to get the dang patch cluster to automatically install, and you would think that would be the easiest thing.

Any help would be very appreciated!



Also, here is a copy of my install-recommended-patches.fin just in case:

Code:
#!/bin/sh
#
# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#ident  "@(#)install-recommended-patches.fin 3.10     04/06/02     SMI"
#
# This script is responsible for installing a Sun Recommended and Security
# patch cluster from ${JASS_ROOT_DIR}${JASS_PATCH_DIR}.  These patch clusters
# can be freely downloaded from sunsolve.sun.com.
#
logMessage "Installing Software: Solaris Recommended and Security Patch Cluster"
echo ""
errorCondition=0
PATCH_OS_VERSION=""
# Determine the current OS version in order to define which cluster to apply.
case ${JASS_OS_REVISION} in
   5.10)
      PATCH_OS_VERSION="10"
      ;;
   5.9)
      PATCH_OS_VERSION="9"
      ;;
   5.8)
      if [ "`echo ${JASS_OS_TYPE} | cut -c1-3`" = "TS8" ]; then
         PATCH_OS_VERSION="TS8"
      else
         PATCH_OS_VERSION="8"
      fi
      ;;
   5.7)
      PATCH_OS_VERSION="7"
      ;;
   5.6)
      PATCH_OS_VERSION="2.6"
      ;;
   5.5.1)
      PATCH_OS_VERSION="2.5.1"
      ;;
   *)
      errorCondition=1
      ;;
esac
if [ ${errorCondition} = 0 ]; then
   PATCH_DIR="${JASS_ROOT_DIR}${JASS_PATCH_DIR}"
   # Handle the special case for Solaris on Intel.
   if [ "`uname -m`" = "i86pc" ]; then
      PATCH_SERV_DIR="${PATCH_OS_VERSION}_x86"
   else
      PATCH_SERV_DIR="${PATCH_OS_VERSION}"
   fi
   PATCH_SERV_DIR="${PATCH_SERV_DIR}_Recommended"
   if [ ! -d ${PATCH_DIR} ]; then
      logNotice 'The patch directory, ${PATCH_DIR}, does not exist.'
   else
      if [ ! -d ${PATCH_DIR}/${PATCH_SERV_DIR} ]; then
         logNotice 'The patch directory, ${PATCH_SERV_DIR}, does not exist.'
      else
         logMessage 'Installing the patches from the directory, ${PATCH_DIR}/${PATCH_SERV_DIR}.'
         echo ""
         add_patch ${JASS_REC_PATCH_OPTIONS} \
            -M ${JASS_ROOT_DIR}${JASS_PATCH_DIR}/${PATCH_SERV_DIR} patch_order
      fi
   fi
else
   logInvalidOSRevision "5.5.1-5.10"
fi

---------- Post updated at 02:01 AM ---------- Previous update was at 01:39 AM ----------

I just figured it out on my own. Problem was staring me right in the face...

Jass's script must be out of date.

The original looked like this:

Code:
         add_patch ${JASS_REC_PATCH_OPTIONS} \
            -M ${JASS_ROOT_DIR}${JASS_PATCH_DIR}/${PATCH_SERV_DIR} patch_order

I corrected it to match how Oracle/Sun does their recommended patch clusters now:

Code:
         add_patch ${JASS_REC_PATCH_OPTIONS} \
            -M ${JASS_ROOT_DIR}${JASS_PATCH_DIR}/${PATCH_SERV_DIR}/patches patch_order

Hmm... now how do I thank myself? Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Debian

Applying patch for Samba version 4.1.17

The version of Samba in our billing server is 4.1.17-Debian. I have been reminded by our management to implement the patch for Samba on this server. However, I am not sure how to implement the patch. I have browsed some websites for the correct patch to implement for Samba 4.1.17, and the patch... (11 Replies)
Discussion started by: anaigini45
11 Replies

2. Ubuntu

Recompile the kernel after applying a patch in Ubuntu.

I have applied a patch using this command: patch -p1 < (file) then I did git commit -a. Now I want to recompile the kernel for making this patch live. Should I use make oldconfig or make localmodconfig After that, make -j$(grep -c "processor" /proc/cpuinfo) sudo make... (1 Reply)
Discussion started by: BHASKAR JUPUDI
1 Replies

3. Solaris

Oracle stopped updating Solaris 10 recommended patch cluster ?

Dear All, Has Oracle stopped updating Solaris 10 recommended patch cluster ? From suport.oracle.com i could see the last patch bundle was released on 11th july and there has been no updates after that. Does anyone know about any official announcement from oracle on this ? Thanks ... (1 Reply)
Discussion started by: abhi_8029
1 Replies

4. Solaris

Recommended patchset for Solaris and the patch bundle

Hello I recently downloaded and installed the latest patchset for Solaris 10 (update 5) running on SPARC. Actually I am new to Solaris (I come from Red Hat) and the security department asked me to update the system for security fixes. I logged in to Oracle support and used the recommended patch... (3 Replies)
Discussion started by: abohmeed
3 Replies

5. UNIX for Dummies Questions & Answers

Typical steps to be followed while applying an application patch upgrade on linux

what are the typical steps used by system adminstrators while applying an application patch upgrade (1 Reply)
Discussion started by: ramky79
1 Replies

6. Solaris

Recommended Patch Cluster Using ZFS Snapshots

I have a question regarding installing recommended patch clusters via ZFS snapshots. Someone wrote a pretty good blog about it here: Initial Program Load: Live Upgrade to install the recommended patch cluster on a ZFS snapshot The person's article is similar to what I've done in the past. ... (0 Replies)
Discussion started by: christr
0 Replies

7. Solaris

Applying Recommended Patch Cluster to Whole Root Zone

Hi there, Apologies if this question has been asked and answered already but I've not been able to find the thread. Question: Is it possible to apply the Solaris 10 Recommended Patch Cluster to a whole root (non-global) zone locally? I.E. apply the patch cluster from the non-global in... (3 Replies)
Discussion started by: nm146332
3 Replies

8. Solaris

Issue while installing: Solaris 10 SPARC Recommended Patch Cluster (2009.10.23)

Hello, As explained, I've encountered an issue while installing Solaris 10 SPARC Recommended Patch Cluster (2009.10.23). Actually, patch no 120011-14 stops with the following error: ERROR: attribute verification of </var/run/.patchSafeMode/root/usr/bin/passwd> failed file type <f>... (6 Replies)
Discussion started by: a.mauger
6 Replies

9. Solaris

10 Recommended Patch Not Working

Hello, The 10_Recommended update failed on 3 of 191, which was patch 119254-73 (the 1st 2 patches were skipped). I looked up the patch on Sunsolve (http://sunsolve.sun.com/search/document.do?assetkey=1-21-119254), which stated that 121133-02 was a required patch for 119254-73. I did a "showrev... (7 Replies)
Discussion started by: stringman
7 Replies

10. Solaris

What kind of steps should be followed while applying patch in real time?

Hi, As in the solaris material i know that the patch is added through the command "patchadd <patch no.>". But i need to know, what are all the steps we have to follow while applying a patch in a production server. My friend says that we have to detach mirror before applying patch and not... (6 Replies)
Discussion started by: Sesha
6 Replies
Login or Register to Ask a Question