Patching an x86 Miniroot Image for the Solaris OSEnda O'Connor, March 2007 Abstract This article describes how to install the latest Kernel Update (KU) patch, or any patch, to a post-GRUB x86 based miniroot image for the JumpStart installation program. IntroductionIn some cases, Sun provides hardware support through driver patches. Sun provides these driver patches to support third-party hardware, such as IBM BladeCenter servers. Another reason Sun might provide hardware support is to enable the installation of a particular release of the Solaris Operating System on newer hardware without necessitating the re-engineering of that particular Solaris release. In such instances, it is often necessary to install a particular driver patch. Most often, the process involves installing the latest KU patch for the OS in question. This procedure describes how to patch an x86 GRUB miniroot image to create a modified GRUB based miniroot that contains the latest KU. The Solaris OS that is used in this procedure is the Solaris 10 1/06 release, which is the same release that introduced GRUB based booting on x86 based systems. However, you can use this procedure for all subsequent Solaris 10 releases that implement GRUB based booting. For more information about GRUB based booting, see the System Administration Guide: Basic Administration at http://docs.sun.com/app/docs/doc/817-1985. About the x86 Miniroot ImageThe miniroot is a minimal, bootable root ( It is important to understand that the instructions that are
provided
in this article describe how to install a patch on the miniroot image only.
When you patch the miniroot image, the patch is not installed
on the system where the Solaris OS installation will take place or on
the system that the Before You Get StartedThe examples in this article utilize two different systems. One system is a SPARC platform-based network installation server that is running the JumpStart installation program. The second system is an x86 based system that implements GRUB. The x86 system is the system on which you perform the first set of instructions, which includes unpacking and packing the miniroot. The second set of instructions includes tasks that are performed on a separate SPARC platform-based network installation server. These tasks include how to enable an installation of the modified image from that system. Note - The instructions in this procedure are for a setup that includes a separate network installation server. If you are not using a separate network installation server, you do not need to complete the second set of instructions. The process of patching the miniroot image is finished when you have completed the first set of instructions. The following setup was used for this procedure:
The JumpStart installation image is located at:
How to Modify the x86 MinirootThis procedure shows how to install the latest KU 118855-36 patch on a Solaris 10 1/06 miniroot image. On an x86 based system that is running the Solaris 10 OS with GRUB
implemented,
follow these steps. Note you must be superuser ( 1. Create the installation and miniroot directories under the # mkdir /export/u1 /export/mr 2. Change directories to the # cd /net/jmp-start1/export/images/x86/solaris_10_u1/Solaris_10/Tools 3. Run the # ./setup_install_server /export/u1 Verifying target directory... Calculating the required disk space for the Solaris_10 product Calculating space required for the installation boot image Copying the CD image to disk... Copying Install Boot Image hierarchy... Copying /boot x86 netboot hierarchy... Install Server setup complete The installation server setup is now complete. 4. Run the following command to unpack the miniroot. # /boot/solaris/bin/root_archive unpackmedia /export/u1 /export/mr 5. Change directories. # cd /export/mr/sbin 6. Make a copy of the # cp rc2 rc2.orig # cp sulogin sulogin.orig 7. Apply all required patches to the miniroot. # patchadd -C /export/mr /export/patch-id For example: # patchadd -C /export/mr /export/118344-14 # patchadd -C /export/mr /export/122035-05 # patchadd -C /export/mr /export/119043-10 # patchadd -C /export/mr /export/123840-04 # patchadd -C /export/mr /export/118855-36# 8. Export the # export SVCCFG_REPOSITORY=/export/mr/etc/svc/repository.db Caution
- The 9. Modify the miniroot's # svccfg -s system/manifest-import setprop start/exec = :true # svccfg -s system/filesystem/usr setprop start/exec = :true # svccfg -s system/identity:node setprop start/exec = :true # svccfg -s system/device/local setprop start/exec = :true # svccfg -s network/loopback:default setprop start/exec = :true # svccfg -s network/physical:default setprop start/exec = :true # svccfg -s milestone/multi-user setprop start/exec = :true For more information, see the 10. Change directories. Then, restore the original copies of the # cd /export/mr/sbin # mv rc2.orig rc2 # mv sulogin.orig sulogin 11. Pack the modified miniroot that contains the changes you made. Place the modified miniroot in the # /boot/solaris/bin/root_archive packmedia /export/u1 /export/mr This step essentially replaces Next Steps - If you ran the preceding instructions on a GRUB based
x86 based
system that is also your network installation server, you do not
need to
proceed to the next set of instructions. You are done. The modified miniroot that was
packed
into However, if you ran the preceding instructions on a separate x86 based system, similar to the example in this procedure, you will need to copy the modified installation image to the network installation server. Proceed to the next set of instructions, which describe how to copy the installation image back to the network installation server. Copying the Modified Installation Image to the Network Installation ServerOn the installation server, complete the following steps. Note that you
must be superuser ( 1. Create the # mkdir /export/images/x86/solaris_10_u1_latest 2. Change directories to the Solaris 10 # cd /net/v20z-1/export/u1/Solaris_10/Tools 3. Run the # ./setup_install_server /export/images/x86/solaris_10_u1_latest Verifying target directory... Calculating the required disk space for the Solaris_10 product Calculating space required for the installation boot image Copying the CD image to disk... Copying Install Boot Image hierarchy... Copying /boot x86 netboot hierarchy... Install Server setup complete # The installation image on the installation server at The image at When the installation process starts, you should see a message that is similar to the following on the console. "SunOS Release 5.10 Version Generic_118855-36 32-bit" Note - This message is displayed by the miniroot. As previously explained, the actual image that is installed does not contain patch 118855-36. The process of adding this patch to the final installed image is completed by using a finish script. This process is part of the custom JumpStart program. Additional ReferencesFor more information about the Solaris installation process on both SPARC and x86 based systems, see the following references:
Unless otherwise licensed, code in all technical manuals herein (including articles, FAQs, samples) is provided under this License. |
|