make_medialif.1m (2012 03)

m
make_medialif(1M) make_medialif(1M)
/var/depots/doc_apps respectively. On the CD, these depots are stored under the
depots directory.
Also, assume that we have the same archive and configuration file /home/root/config_cd as in Example
3.
To create configuration files for these depots:
make_config -s /var/depots/eng_apps
-c /home/root/eng_cfg
make_config -s /var/depots/cad_apps
-c /home/root/cad_cfg
make_config -s /var/depots/doc_apps
-c /home/root/doc_cfg
In the
sw_source section in all three files, remove the
sd_server line, change the source_type
from "NET" to "DSK", and then change the
sd_depot_dir from "/var/depots/XXX
_apps" to
"depots/XXX_apps", where XXX is either
eng, cad or doc as appropriate.
To create the LIF header that captures all of this, you would execute this command:
make_medialif -f /opt/ignite/data/Rel_B.11.23/config
-f /home/root/config_cd
-f /home/root/eng_cfg
-f /home/root/cad_cfg
-f /home/root/doc_cfg
-l /home/root/uxinstlf_cd
If an interactive installation from these depots is desired, make sure
run_ui and
control_from_server
are set as described in Example 6.
Since the image will include these depots, as well as the archive, you may assume the total size will fit in
500MB. To create the image, you would:
lvcreate -L 500 -n archvol vg00
newfs -F hfs -f 2048 /dev/vg00/rarchvol
mkdir /tmpcd
mount /dev/vg00/archvol /tmpcd
cp /var/tmp/myimage.gz /tmpcd
swcopy -s /var/depots/eng_apps \* @ /tmpcd/depots/eng_apps
swcopy -s /var/depots/cad_apps \* @ /tmpcd/depots/cad_apps
swcopy -s /var/depots/doc_apps \* @ /tmpcd/depots/doc_apps
umount
/tmpcd
dd if=/dev/vg00/rarchvol
of=/var/tmp/fs_image_hfs bs=1024k
Use
instl_combine to combine the LIF image and file system:
/opt/ignite/lbin/instl_combine -F
/home/root/uxinstl_cd
-C /var/tmp/fs_image_hfs
Now using a CD writing utility, transfer /var/tmp/fs_image_hfs to a writable CD in raw mode. The
resulting CD is a bootable, installable Ignite-UX medium. The image may be transferred to a raw disk.
A system booted from that disk may be helpful to test the image before writing it to CD.
Example 8
Suppose there is no archive, but instead an entire core operating system depot to install from DDS tape.
Assume that the core depot is in /var/depots/core.
To create a configuration file for this depot, you would:
make_config -s /var/depots/core -c /home/root/core_cfg
In the
sw_source section of /home/root/core_cfg, remove the sd_server and sd_depot_dir
lines, and then change the source_type from "NET" to "MT". To package the depot into a serial
depot in /var/tmp/serialdepot, you would:
swpackage -s /var/depots/core -x target_type=tape
@ /var/tmp/serialdepot
Use
make_medialif to create the LIF header and include the configuration file for the core depot as
follows:
make_medialif -f /opt/ignite/data/Rel_B.11.23/config
-f /home/root/core_cfg -l /home/root/uxinstlf_dds
There is no archive to put onto the medium; however, because the depot must be the third file on the tape,
an empty file must be placed on the medium. The
mt command is used to do this. Create the DDS
medium with the following commands:
6 Hewlett-Packard Company − 6 − HP-UX 11i Version 3: March 2012