Operating System - HP-UX
1833589 Members
4087 Online
110061 Solutions
New Discussion

Re: make_bundles: add s/w to EXISTING bundle

 
Mark Landin
Valued Contributor

make_bundles: add s/w to EXISTING bundle

How can I add a new (or updated) software product into an existing bundle in a depot using make_bundles? If bundle BUNDLE1 exists in my depot, and I use "make_bundles -b BUNDLE1 ..." then the new unbundled software gets put into BUNDLE1, but the software that WAS in BUNDLE1 is now unbundled.

11 REPLIES 11
Stefan Farrelly
Honored Contributor

Re: make_bundles: add s/w to EXISTING bundle


Adding products to an existing bundle isnt easy. You will need to recreate your bundle psf file to include the new product(s). Using make_bundles wont do it, you will need to do it manually by creating a psf file and using swpackage to do it.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Mark Landin
Valued Contributor

Re: make_bundles: add s/w to EXISTING bundle

Well that's definitely not what I wanted to hear. :( Can I extract a .psf from an existing bundle somehow? I mean everything is already in an SD-friendly format ... it sucks if I can't leverage that fact and save myself some work.

In the meantime, however, the best option i've found is to go ahead and do the make_bundles, which means I now have all the previously-bundled software just sitting there unbundled, and then I have the bundle with the new software in it. Then I delete that bundle, swcopy the new s/w products into the depot again, so now I have the old bundled s/w and the *new* s/w unbundled ... then I can run make_bundles to bundle them all up again. Ugly, but it works ... I was just hoping there was a better way... maybe I'll script it or something. (And if *I* can script it, then it means the Ignite coders can script make_bundles to do the same thing!)
Cheryl Griffin
Honored Contributor

Re: make_bundles: add s/w to EXISTING bundle

You can remedy this by using Appendix B which says first update the depot with swcopy or swremove then rebundle the package.

"NOTE: If you need to add additional patches to the depot in the future, simply unshar the patches as described above, swcopy them into the Patches depot, and rerun the "make_bundles" command. This will repackage the depot."

http://www.software.hp.com/products/IUX/docs/sysadm.html Appendix B: Loading HP-UX Patches with Ignite-UX

Cheryl
"Downtime is a Crime."
Mark Landin
Valued Contributor

Re: make_bundles: add s/w to EXISTING bundle

Cheryl,

That is basically what I'm doing. make_bundles doesn't add s/w to an existing bundle the way Appendix B implies. I'm on Ignite B.3.6.82, by the way...
HP-UX Recovery Team
New Member

Re: make_bundles: add s/w to EXISTING bundle

Hello,
here is a step-by-step instruction on how to proceed. If you have access to the knowledge trees, you can also find many other documents not only about Ignite-UX under the new section Software Recovery Handbook.

Creating an Individual Patch Depot
Example: individual patches for HP-UX 11.00 were downloaded to /tmp/patch_download.
1) Unpacking the patches in /tmp/patch_download.
# /usr/bin/cd /tmp/patch_download
#for i in PH*
>do
>sh $i
> done
2) Moving the descriptions for example to /tmp/patch_description.
# /usr/bin/mkdir /tmp/patch_description
# /usr/bin/mv /tmp/patch_download /*.text /tmp/patch_description
3) Creating the individual patch depot.
# /usr/bin/mkdir /var/opt/ignite/depots/Rel_B.11.00/my_patches
# for i in PH*.depot
>do
> /usr/sbin/swcopy -s ${PWD}/$i \* @ /var/opt/ignite/depots/Rel_B.11.00/my_patches
> done
Note: If you want to use swcopy for HP-UX 10.20 depots on a 11.x Ignite-UX server,
you must additionaly use the -x layout_version=0.8 option.
4) Making sure all installed patches are included in the individual patch depot.
# /usr/sbin/swlist -d @ /var/opt/ignite/depots/Rel_B.11.00/my_patches
5) Converting the individual patches into a single bundle and putting the bundle in the patch
depot (Ignite-UX can only handle SD bundles).
# /opt/ignite/bin/make_bundles -B -n individual_patches -t "HP-UX 11.00 Patches" /var/opt/ignite/depots/Rel_B.11.00/my_patches
6) Running swlist again to verify the creation of the bundle.
# /usr/sbin/swlist -d @ /var/opt/ignite/depots/Rel_B.11.00/my_patches
To display the patches of this bundle, use
# /usr/sbin/swlist -l product -d @ /var/opt/ignite/depots/Rel_B.11.00/my_patches
7) Changing individual patch depots.
If you need to add additional patches to the depot in the future, simply unshar the patches as
described above, swcopy them into the patch depot, and rerun make_bundles. If you would
like to remove a patch from the depot, simply use the swremove command and rerun
make_bundles. The example below removes the patch PHKL_8376 from the patch depot
which was previously named individual_patches via the -n option.
# /usr/sbin/swremove -d individual_patches.PHKL_8376 @ /var/opt/ignite/depots/Rel_B.11.00/my_patches
Mark Landin
Valued Contributor

Re: make_bundles: add s/w to EXISTING bundle

*sigh*. I think you are missing key point of my question: THE SOFTWARE BUNDLE ALREADY EXISTS IN THE DEPOT. If I run make_bundles and use the -B -n option, the unbundled software DOES go into the bundle specified in the -n option, BUT THE SOFTWARE THAT WAS ALREADY IN THAT BUNDLE IS UNBUNDLED AT THE SAME TIME.

I must be a poor question-writer because 2 out of 3 people who replied missed that.
Jimmy Roux_1
Advisor

Re: make_bundles: add s/w to EXISTING bundle

Hi Mark,

Have you figured a way to do this? I am trying to do the same thing as you are but with no success so far.

How do you an a product (patch) to an existing bundle (patch bundle)?

Thanks,

Jimmy
Mark Landin
Valued Contributor

Re: make_bundles: add s/w to EXISTING bundle

Nope...
Arco van Geest
Frequent Advisor

Re: make_bundles: add s/w to EXISTING bundle

Combining ALL in one bundle?
have you tried the -B option for make_bundles then?

Otherwise I also don't understand your question:
You have a depot with a bundle and severall loose products you want to install as one bundle.
Mark Landin
Valued Contributor

Re: make_bundles: add s/w to EXISTING bundle

Yes, I used -B. It bundled up the loose products into the bundle, but also UNBUNDLED all the previously bundled filesets into loose filesets.
RolandH
Honored Contributor

Re: make_bundles: add s/w to EXISTING bundle

# swlist -l depot
/mybundles

# swlist -s /mybundles

# Initializing...
# Contacting target "myhost"...
#
# Target: myhost:/mybundles
#

#
# Bundle(s):
#

BUNDLE1 A.1.0 HP-UX 11.11 Patches

# swlist -s /mybundles BUNDLE1
# Initializing...
# Contacting target "myhost"...
#
# Target: myhost:/mybundles
#

# BUNDLE1 A.1.0 HP-UX 11.11 Patches
BUNDLE1.PHKL_30506 1.0 First version of Kernel Syncer

Till here we just listed what you already have.

Now you want add a patch for example.

# swcopy -x enforce_dependencies=false -s /tmp/PHKL_11111.depot \* @ /mybundles

# swlist -s /mybundles
#
# Bundle(s):
#

BUNDLE1 A.1.0 HP-UX 11.11 Patches
#
# Product(s) not contained in a Bundle:
#

PHKL_11111 1.0 This patch fix something

# /opt/ignite/bin/make_bundles -B -n BUNDLE1 -t "HP-UX 11.11 Patches" /mybundles

# swlist -s /mybundles BUNDLE1
# Initializing...
# Contacting target "myhost"...
#
# Target: myhost:/mybundles
#

# BUNDLE1 A.1.0 HP-UX 11.11 Patches
BUNDLE1.PHKL_30506 1.0 First version of Kernel Syncer
BUNDLE1.PHKL_11111 1.0 This patch fix something


The important thing is that you use the sam description text and name for the bundle that you have used as you created the first bundle. ( "HP-UX 11.11 Patches" and BUNDLE1 )

If that not works your make_bundle does not work correct. I have just tested it and as you can see it works great.

One personal Note for you. Don't use CAPITAL Letters in your replies. That looks like you were shouting us. And that is not very kind.

Roland

Sometimes you lose and sometimes the others win