make_medialif.1m (2012 03)

m
make_medialif(1M) make_medialif(1M)
Example 5
Create a boot LIF image (as in Example 2) with a software depot that is to be included on the media.
Assume that the software depot has been created and is located in /var/depots/source.
There must be a file that describes the content of this depot. Create the configuration file for
/var/depots/source in /home/root/source_cfg:
make_config -s /var/depots/source
-c /home/root/source_cfg
In the
sw_source section of /home/root/source_cfg, remove the
sd_server and sd_depot_dir
lines, and change the source_type from "NET" to
"MT". Package the depot into a serial depot in
/var/tmp/serialdepot. It is possible to use
swpackage to write directly to the tape and avoid this step
if disk space is low, but in most cases using an intermediate serial depot may be easier:
swpackage -s /var/depots/source
-x target_type=tape
@ /var/tmp/serialdepot
On DDS media, the depot must be the third file on the tape. Note that a single archive may come before
the depot, and any number of archives may come after the depot with each one referenced by an
appropriate
archive_path in a unique sw_sel in a configuration file, subject to tape capacity. If
multiple operating system archives are put onto a single medium, it is advisable to use an
exre-
quisite attribute in the sw_sel so that only one archive is selected. Also, note that in order to
interactively select bundles to load from the depot, the variables
run_ui and
control_from_server
must be correctly set (see Example 6). Use make_medialif to create the
LIF header and include the new configuration file for the depot:
make_medialif -f /opt/ignite/data/Rel_B.11.23/config
-f /home/root/source_cfg
-f /home/root/config_dds
-l /home/root/uxinstlf_dds
Then create the DDS medium with the following commands:
mt -t /dev/rmt/c0t3d0DDS1n rew
dd if=/home/root/uxinstlf_dds
of=/dev/rmt/c0t3d0DDS1n obs=2k
dd if=/var/tmp/myimage.gz
of=/dev/rmt/c0t3d0DDS1n obs=10k
dd if=/var/tmp/serialdepot
of=/dev/rmt/c0t3d0DDS1n obs=10k
mt -t /dev/rmt/c0t3d0DDS1n rew
Example 6
To create a bootable DDS medium that allows the installation of a configuration defined on an Ignite-UX
server, for example the "HP-UX B.11.11 Default" 64-bit capable configuration, you would exe-
cute the following command:
make_medialif -c "HP-UX B.11.11 Default"-rB.11.11 -o 64v
-l /home/root/uxinstlf
Note that the installation proceeds according to how the variables
run_ui and
control_from_server
are set in the INSTALLFS or WINSTALLFS (if this is a 64-bit image) files.
For example, if a completely unattended installation is desired with a window of opportunity to interrupt
the process, these variables must be set:
run_ui=false
control_from_server=false
env_vars += "INST_ALLOW_WARNINGS=10"
env_vars += "INST_BATCH_MODE_TIMEOUT=10"
Place these variables in the WINSTALLFS before writing the image to medium using the same tape drive
as before:
instl_adm -F /home/root/uxinstlf -d > /tmp/cfg
vi /tmp/cfg # add the above lines
instl_adm -F /home/root/uxinstlf -f /tmp/cfg
mt -t /dev/rmt/c0t3d0DDS1n rew
dd if=/home/root/uxinstlf of=/dev/rmt/c0t3d0DDS1n obs=2k
mt -t /dev/rmt/c0t3d0DDS1n rew
Example 7
Unlike DDS tape in which only one software depot is supported, an installation CD may contain multiple
software depots. Assume that there are three software depots that contain various engineering, CAD,
and documentation applications in /var/depots/eng_apps, /var/depots/cad_apps and
HP-UX 11i Version 3: March 2012 5 Hewlett-Packard Company 5