Sorry, but I couldn?t write it before Christmas as I said before. :(

First of all I can see that you did the trick the way I was trying to do with 
no luck before.

In your way you edit microroot of existing iso. My approach is different. I 
install cpqary3 driver during the process of building the whole iso. 

Anyway here are the steps which you have to take with distro-const aproach.

1. Install/upgrade OpenSolaris to the newest version.

2. Install distro-const package

    # pkg install SUNWdistro-const

3. Take a look into files which are in directory /usr/share/distro_const
    The main script (point no 6) will use these set of files/scripts to build 
the iso.

4. The one in which I made changes is bootroot_archive.py

     Go to the "# Copy files to the archive." section. I added lines with cmd2 
string:

# Copy files to the archive.
cmd = CD + " " + BR_BUILD + "; "
cmd += FIND + " . | " + CPIO + " -pdum " + BR_LOFI_MNT_PT
cmd2 = CD + " " + "/root/hp" + "; "
cmd2 += "/root/hp/inject_cpq.sh"
copy_status = os.system(cmd)
os.system(cmd2)

Added lines change the path and execute additional script which copy drivers to 
the microroot tree before it is being packed together.

NOW the most ugly part of this procedure... Please download tar.gz archive with 
SmartArray driver extracted from original HP package. 

Here it is: www.szymonbanka.com/inject_cpq-2.0.0.tar.gz

Extract it in /root folder. As you can see inside there is script which copies 
the drivers and drivers with configuration files itself. I say this is the ugly 
way because proper solution would be to pkgadd the driver to the microroot 
tree. 

5. When you have bootroot_archive.py edited and inject_cpq-2.0.0.tar.gz 
extracted to the root folder you are ready to build the iso.

6. build the iso entering this command:

# distro_const build /usr/share/distro_const/slim_cd/slim_cd.xml

You can track the progress in log files which are located at /rpool/dc/logs

7 . In the end you will find the iso files in /rpool/dc/media


If you have any more questions please ask... 


Simon
-- 
This message posted from opensolaris.org

Reply via email to