Ignite-UX Reference (March 2010, B3921-90005)

make_medialif(1M) make_medialif(1M)
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:
mt -t /dev/rmt/c0t3d0DDS1n rew
dd if=/home/root/uxinstlf_dds of=/dev/rmt/c0t3d0DDS1n obs=2k
mt -t /dev/rmt/c0t3d0DDS1n eof
dd if=/var/tmp/serialdepot of=/dev/rmt/c0t3d0DDS1n obs=10k
mt -t /dev/rmt/c0t3d0DDS1n rew
Example 9
To load both the core operating system (one or more HPUXEnvironment bundles) and standard applica-
tions, it is best to have separate configuration files. Some applications do not load correctly at
load_order 0 with the core operating system. So assume you also have additional applications to load
in the depot /var/depots/apps. Use make_config to create a separate configuration file for the applica-
tions depot as in Example 5. Create the LIF header using both of those configuration files:
make_medialif -f /opt/ignite/data/Rel_B.11.23/config
-f /home/root/core_cfg -f /home/root/apps_cfg
-l /home/root/uxinstlf_dds
Now, combine the core and applications depots into a single global depot and create a serial depot:
swcopy -s /var/depots/core \* @ /var/depots/global
swcopy -s /var/depots/apps \* @ /var/depots/global
swpackage -s /var/depots/global -x target_type=tape
@ /var/tmp/serialdepot
Combine the DDS medium:
mt -t /dev/rmt/c0t3d0DDS1n rew
dd if=/home/root/uxinstlf_dds of=/dev/rmt/c0t3d0DDS1n obs=2k
mt -t /dev/rmt/c0t3d0DDS1n eof
dd if=/var/tmp/serialdepot of=/dev/rmt/c0t3d0DDS1n obs=10k
mt -t /dev/rmt/c0t3d0DDS1n rew
Example 10
On a B.11.23 operating system, create a minimal boot image for a B.11.11 64w-bit system with the -m, -r
and -o options:
make_medialif -r B.11.11 -o 64w -m -l /tmp/lif_test
lifls -l /tmp/lif_test
This will list the contents:
7