s2budd
asked on
Solaris JET finish script confusion
Hi
I have alot of confusion regarding the running of a finish script after a Sollaris JET install.
The Jet install works fine and the finish script runs but I do not understand if the script is running on the Jumpstart server or client and why the /a directory is empty.
I would like to copy some files from the Jumpstart server to the Jumpstart client but initially I would like to understand exactly what is mounted to what.
I am using JET, so a JET template
The template defines the finish script as: custom_scripts_m="athena-f inish.sh"
The actual script exists on the Jumpstart server under here: /opt/SUNWjet/Clients/athen a/athena-f inish.sh
The script runs ok but I can not seem to use the mounted /a directory and I am not sure which server is running the script - The Jumpstart server or the client.
The finish script is this:
#!/bin/sh
BASE="/a"
CLIENT=athena
SERVER="192.168.1.140"
echo "************************* *****"
echo "***** FINISH SCRIPT **********"
echo "************************* *****"
echo "**** Check a dir"
ls -alp
ls -alp ${BASE}
echo "***** COPY 1 ****"
echo "***** Running on server"
cp /opt/SUNWjet/Clients/athen a/hosts ${BASE}/etc/inet/hosts
cp /opt/SUNWjet/Clients/athen a/.profile ${BASE}/.profile
echo "*** Running on client"
cp ${BASE}/opt/SUNWjet/Client s/athena/h osts /etc/inet/hosts
cp ${BASE}/opt/SUNWjet/Client s/athena/. profile /.profile
The output is this:
CUSTOM: Running 001.custom.002.athena-fini sh.sh
************************** ****
***** FINISH SCRIPT **********
************************** ****
**** Check a dir
total 1087
drwxr-xr-x 23 root root 512 Jun 15 18:45 ./
drwxr-xr-x 23 root root 512 Jun 15 18:45 ../
-rwxr-xr-x 1 root other 4374 Jun 15 08:22 .profile
drwxr-xr-x 2 root root 512 Jun 14 21:49 a/
drwxr-xr-x 3 root root 512 Jun 14 21:42 apps/
lrwxrwxrwx 1 root root 9 Jun 15 18:43 bin -> ./usr/bin/
drwxr-xr-x 17 root sys 3584 Jun 15 18:45 dev/
drwxr-xr-x 5 root sys 512 Jun 15 18:43 devices/
drwxr-xr-x 60 root sys 3584 Jun 15 18:49 etc/
drwxr-xr-x 3 root sys 512 Jun 15 18:43 export/
dr-xr-xr-x 1 root root 1 Jun 15 18:49 home/
drwxr-xr-x 10 root sys 512 Jun 15 18:43 kernel/
lrwxrwxrwx 1 root root 9 Jun 15 18:43 lib -> ./usr/lib/
drwx------ 2 root root 8192 Jun 14 21:11 lost+found/
drwxr-xr-x 2 root sys 512 Jun 14 21:12 mnt/
dr-xr-xr-x 1 root root 1 Jun 15 18:49 net/
-rw-r--r-- 1 root root 0 Jun 15 18:44 noautoshutdown
drwxr-xr-x 4 root sys 512 Jun 15 18:43 opt/
drwxr-xr-x 47 root sys 2048 Jun 15 18:43 platform/
-rw-r--r-- 1 root other 26112 Jun 15 10:57 post-flash.tar
dr-xr-xr-x 36 root root 480032 Jun 15 18:49 proc/
drwxr-xr-x 2 root sys 1024 Jun 15 18:43 sbin/
drwxrwxrwt 3 root sys 185 Jun 15 18:49 tmp/
drwxr-xr-x 37 root sys 1024 Jun 15 18:43 usr/
drwxr-xr-x 34 root sys 512 Jun 15 18:39 var/
dr-xr-xr-x 2 root root 512 Jun 14 21:49 vol/
drwxr-xr-x 3 root root 512 Jun 14 21:42 wkspace/
dr-xr-xr-x 1 root root 1 Jun 15 18:49 xfn/
total 4
drwxr-xr-x 2 root root 512 Jun 14 21:49 ./
drwxr-xr-x 23 root root 512 Jun 15 18:45 ../
**** Check a dir
***** COPY 1 ****
***** Running on server
cp: cannot access /opt/SUNWjet/Clients/athen a/hosts
cp: cannot access /opt/SUNWjet/Clients/athen a/.profile
*** Running on client
cp: cannot access /a/opt/SUNWjet/Clients/ath ena/hosts
cp: cannot access /a/opt/SUNWjet/Clients/ath ena/.profi le
501 Terminated
I do not understand why I do not have access to the a/opt/SUNWjet/Clients/athe na directory ?
Thanks in advance
I have alot of confusion regarding the running of a finish script after a Sollaris JET install.
The Jet install works fine and the finish script runs but I do not understand if the script is running on the Jumpstart server or client and why the /a directory is empty.
I would like to copy some files from the Jumpstart server to the Jumpstart client but initially I would like to understand exactly what is mounted to what.
I am using JET, so a JET template
The template defines the finish script as: custom_scripts_m="athena-f
The actual script exists on the Jumpstart server under here: /opt/SUNWjet/Clients/athen
The script runs ok but I can not seem to use the mounted /a directory and I am not sure which server is running the script - The Jumpstart server or the client.
The finish script is this:
#!/bin/sh
BASE="/a"
CLIENT=athena
SERVER="192.168.1.140"
echo "*************************
echo "***** FINISH SCRIPT **********"
echo "*************************
echo "**** Check a dir"
ls -alp
ls -alp ${BASE}
echo "***** COPY 1 ****"
echo "***** Running on server"
cp /opt/SUNWjet/Clients/athen
cp /opt/SUNWjet/Clients/athen
echo "*** Running on client"
cp ${BASE}/opt/SUNWjet/Client
cp ${BASE}/opt/SUNWjet/Client
The output is this:
CUSTOM: Running 001.custom.002.athena-fini
**************************
***** FINISH SCRIPT **********
**************************
**** Check a dir
total 1087
drwxr-xr-x 23 root root 512 Jun 15 18:45 ./
drwxr-xr-x 23 root root 512 Jun 15 18:45 ../
-rwxr-xr-x 1 root other 4374 Jun 15 08:22 .profile
drwxr-xr-x 2 root root 512 Jun 14 21:49 a/
drwxr-xr-x 3 root root 512 Jun 14 21:42 apps/
lrwxrwxrwx 1 root root 9 Jun 15 18:43 bin -> ./usr/bin/
drwxr-xr-x 17 root sys 3584 Jun 15 18:45 dev/
drwxr-xr-x 5 root sys 512 Jun 15 18:43 devices/
drwxr-xr-x 60 root sys 3584 Jun 15 18:49 etc/
drwxr-xr-x 3 root sys 512 Jun 15 18:43 export/
dr-xr-xr-x 1 root root 1 Jun 15 18:49 home/
drwxr-xr-x 10 root sys 512 Jun 15 18:43 kernel/
lrwxrwxrwx 1 root root 9 Jun 15 18:43 lib -> ./usr/lib/
drwx------ 2 root root 8192 Jun 14 21:11 lost+found/
drwxr-xr-x 2 root sys 512 Jun 14 21:12 mnt/
dr-xr-xr-x 1 root root 1 Jun 15 18:49 net/
-rw-r--r-- 1 root root 0 Jun 15 18:44 noautoshutdown
drwxr-xr-x 4 root sys 512 Jun 15 18:43 opt/
drwxr-xr-x 47 root sys 2048 Jun 15 18:43 platform/
-rw-r--r-- 1 root other 26112 Jun 15 10:57 post-flash.tar
dr-xr-xr-x 36 root root 480032 Jun 15 18:49 proc/
drwxr-xr-x 2 root sys 1024 Jun 15 18:43 sbin/
drwxrwxrwt 3 root sys 185 Jun 15 18:49 tmp/
drwxr-xr-x 37 root sys 1024 Jun 15 18:43 usr/
drwxr-xr-x 34 root sys 512 Jun 15 18:39 var/
dr-xr-xr-x 2 root root 512 Jun 14 21:49 vol/
drwxr-xr-x 3 root root 512 Jun 14 21:42 wkspace/
dr-xr-xr-x 1 root root 1 Jun 15 18:49 xfn/
total 4
drwxr-xr-x 2 root root 512 Jun 14 21:49 ./
drwxr-xr-x 23 root root 512 Jun 15 18:45 ../
**** Check a dir
***** COPY 1 ****
***** Running on server
cp: cannot access /opt/SUNWjet/Clients/athen
cp: cannot access /opt/SUNWjet/Clients/athen
*** Running on client
cp: cannot access /a/opt/SUNWjet/Clients/ath
cp: cannot access /a/opt/SUNWjet/Clients/ath
501 Terminated
I do not understand why I do not have access to the a/opt/SUNWjet/Clients/athe
Thanks in advance
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thanks guys
Awarded points as: 50, 50, 25
And what do points make? Points make prizes.
Awarded points as: 50, 50, 25
And what do points make? Points make prizes.
ASKER
Thanks for your reply. Yes I know about the above references and I did look in them again before posting but I am still confused. I can find some information within the the Yahoo group that's about 25% relevant and the JET documentation needs an update but does include a finish script but with a Perl script that modifies Jumpstart which is a bit confusing.
Does the finish script in the above example from the JET template: custom_scripts_m="athena-f
actually run on the Jumpstart server or the jumpstart client?
I am about 70% sure that it runs on the client but do not know why the directory /a is empty. I thought that a/ whould contain one of the NFS shares from the Jumpstart server.