Operating System - HP-UX
1835224 Members
2678 Online
110078 Solutions
New Discussion

Re: adding one more file for the insallation

 
SOLVED
Go to solution
Noam Meltzer
Advisor

adding one more file for the insallation

Assume that I have some files (like tcsh, bash, or custom scripts) that I want to send along with the Ignite installtion (I have an Ignite server in the network), so in the end of the insallation these files will be available on my local disk (lets say, in /usr/bin).
I noticed that in the beginning of the ignite process, the clients gets minimal files that it needs for its operation, maybe its possible to send the files I want with this? (I think its called mini-system or something like that)

10x,
Noam
HP engineers must live on Mars. Otherwise how can you explain the fact that they invented the wheel themselves?
5 REPLIES 5
kish_1
Valued Contributor

Re: adding one more file for the insallation

I think is possible adding the INDEX files and
In /var/opt/ignite/INDEX

cfg file should be added into like
/var/opt/ignite/data/B.11.00/test_cfg
frankly I never did this , but I am able to install any depot files.

share the power of the knowledge
Noam Meltzer
Advisor

Re: adding one more file for the insallation

as i understand your suggestion, i need to add another configuration file for ignite.
But thats not what I want.
I want that ignite will copy the client machine, *one more* file that I choose.

Noam
HP engineers must live on Mars. Otherwise how can you explain the fact that they invented the wheel themselves?
Konrath
Occasional Advisor

Re: adding one more file for the insallation

Hi Noam,
just add the file(s) to the gzipped tar archive "SYSCMDS". You find it in /opt/ignite/data/Rel_B.11.00 for example.
Michael Roberts_3
Honored Contributor
Solution

Re: adding one more file for the insallation

Remember that if you modify SYSCMDS _all_ systems installing that version of the OS will get the file(s) and that it isn't selectable.

Here is a way to add a file to SYSCMDS (11.11 in this example):

# unpack SYSCMDS
#
mkdir /var/tmp/tmproot
cd /var/tmp/tmproot
gzcat /opt/ignite/data/Rel_B.11.11/SYSCMDS | pax -pe -rf -

#
# add file in the pseudo root
#

#
# repackage
#
cd /var/tmp/tmproot
tar -vcfb - 20 . | gzip -9 -c > /var/tmp/syscmds

Then move into place in the appropriate directory.

etouq ot hguone revelc ton m'i
Noam Meltzer
Advisor

Re: adding one more file for the insallation

Hi all,
10x for your replies.
I might try to check them out.

Just for the record, I had found another way to solve this one (and I believe it's quite nice):

You create a shar archive of the file you want to copy.
Lets say, "tcsh.shar".
Now you edit the head of the file, add (or change) its interepeter to be "/sbin/sh" (so it can run in a minimal environment) and tells it to "cd /usr/bin "where I want to extract the real tcsh.

Now as you guess, shar(1) is actually a shell script... so I just add it to config.local
as a post_config_script... and it works like charm :-)

Noam
HP engineers must live on Mars. Otherwise how can you explain the fact that they invented the wheel themselves?