updatemedia.1m revision c10c16dec587a0662068f6e2991c29ed3a9db943
te
Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
updatemedia 1M "23 Sep 2009" "SunOS 5.11" "System Administration Commands"
NAME
updatemedia - modify Solaris media with patches and packages
SYNOPSIS

/usr/bin/updatemedia -d media-root [-v] [-o iso] [-l label]
 pkg_or_patch [pkg_or_patch ...]
DESCRIPTION

The updatemedia utility takes a list of patches and packages as input and updates the install miniroot in media-root (the root directory of an on-disk image of a Solaris installation media) to include the specified patches and packages. These patches and packages are also placed in a subdirectory called DU under the Solaris install image. For example:

media-root/Solaris_10/DU

When booting a system from the updated media, the patches and packages will be part of the booted Solaris image. They will also be applied to the target system being installed at the end of the installation process.

If -o is specified, a bootable ISO image is created in the file media.iso that contains the Solaris install media. The ISO image can then be burned onto a CD/DVD with utilities such as cdrw(1) or cdrecord(1). (The latter is not a SunOS man page.)

OPTIONS

The following options are supported:

-d media-root

Top-level directory of on-disk image of Solaris installation media. This is option must be specified.

-o iso

Create a Solaris ISO image of media-root.

-l label

Label/volume name of the ISO image (if -o option is specified). If -o is not specified, the name of Solaris directory under media-root, for example, Solaris_10, will be used.

-v

Verbose. Multiple -v options increase verbosity.

OPERANDS

The following operands are supported:

pkg_or_patch [pkg_or_patch ...]

One or more patches or packages (you can have both patches and packages in a single command) with which the Solaris installation media media-root will be updated.

EXAMPLES

Example 1 Updating a Solaris Install Image with Patch and Package

The following command updates the Solaris install image in s10u1 by adding patch 123456-07 and package SUNWfoo.

# /usr/bin/updatemedia -d s10u1 SUNWfoo 123456-07
ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
Interface StabilityCommitted
SEE ALSO

cdrw(1), mkbootmedia(1M), attributes(5)

mkisofs(8), (/usr/share/man/man8/mkisofs.8), in the SUNWfsman package (not a SunOS man page)