0

I have a Solaris flar archive of an old Solaris 10 environment, now I'm not allowed to update the running system in any way so would like to be able to:

  1. Extract the flar archive somewhere (without installing it)

  2. Apply some Solaris patches to the extracted archive.

  3. Repackage the flar archive

  4. Use the flar archive to setup a branded zone.

Why do it this way? Well because I need a set of minimum patches to get the darned thing to work as a branded zone.

I know how to do step 4 if I ever get to it.

5
  • it's not possible to restore the flar to temporary hardware?
    – Jeff Schaller
    Oct 22, 2015 at 20:03
  • Unfortunately not, to add to the complications it's all at a remote site with no additional hardware other than the already running environment and the host to run the branded zones - plus no bandwidth to bring the flar back to another location. Otherwise that is exactly what I would have done.
    – Sprout
    Oct 22, 2015 at 20:11
  • can you violate assumption #0 and split the hopefully-mirrored disks in order to apply the patches on the split disk, then re-create a flar of that split disk, then reintegrate it? (insert hand-waving here)
    – Jeff Schaller
    Oct 22, 2015 at 20:20
  • Mirrored disks - unfortunately not. Yes, it's a mess but not of my doing. I'm just trying to bail it out before it bails out! No swap or other disk to re-purpose either :-(
    – Sprout
    Oct 22, 2015 at 20:25
  • Is the old Solaris 10 env still up? If yes, you could go via Boot Enviroment, maybe?
    – ludiegu
    Oct 24, 2015 at 7:25

2 Answers 2

1

Building on @ludiegu's comment:

  1. Create a new boot environment using lucreate.
  2. Patch the boot environment as needed
  3. Mount the new boot environment with lumount.
  4. Create a flash archive from that boot environment, using the mount point from lumount as the root path for the flarcreate command.

Also, see this PDF.

0

Yes, but I don't have my notes handy for the 2 or 3 cmds.

For step #1: You need to break apart the archive and the information from the flar archive. flar info and flar split? You can then extract the cpio'd data with cpio. Then patchadd -R <dir>, and then recreate the flar.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .