1 '\" te
   2 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
   3 .\" 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.
   4 .\" 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.
   5 .\" 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]
   6 .TH UPDATEMEDIA 1M "Sep 23, 2009"
   7 .SH NAME
   8 updatemedia \- modify Solaris media with patches and packages
   9 .SH SYNOPSIS
  10 .LP
  11 .nf
  12 \fB/usr/bin/updatemedia\fR  \fB-d\fR \fImedia-root\fR [\fB-v\fR] [\fB-o\fR \fIiso\fR] [\fB-l\fR \fIlabel\fR]
  13      \fIpkg_or_patch\fR [\fIpkg_or_patch\fR ...]
  14 .fi
  15 
  16 .SH DESCRIPTION
  17 .sp
  18 .LP
  19 The \fBupdatemedia\fR utility takes a list of patches and packages as input and
  20 updates the install miniroot in \fImedia-root\fR (the root directory of an
  21 on-disk image of a Solaris installation media) to include the specified patches
  22 and packages. These patches and packages are also placed in a subdirectory
  23 called \fBDU\fR under the Solaris install image. For example:
  24 .sp
  25 .in +2
  26 .nf
  27 \fImedia-root\fR/Solaris_10/DU
  28 .fi
  29 .in -2
  30 .sp
  31 
  32 .sp
  33 .LP
  34 When booting a system from the updated media, the patches and packages will be
  35 part of the booted Solaris image. They will also be applied to the target
  36 system being installed at the end of the installation process.
  37 .sp
  38 .LP
  39 If \fB-o\fR is specified, a bootable ISO image is created in the file
  40 \fBmedia.iso\fR that contains the Solaris install media. The ISO image can then
  41 be burned onto a CD/DVD with utilities such as \fBcdrw\fR(1) or
  42 \fBcdrecord(1)\fR. (The latter is not a SunOS man page.)
  43 .SH OPTIONS
  44 .sp
  45 .LP
  46 The following options are supported:
  47 .sp
  48 .ne 2
  49 .na
  50 \fB\fB-d\fR \fImedia-root\fR\fR
  51 .ad
  52 .sp .6
  53 .RS 4n
  54 Top-level directory of on-disk image of Solaris installation media. This is
  55 option must be specified.
  56 .RE
  57 
  58 .sp
  59 .ne 2
  60 .na
  61 \fB\fB-o\fR \fIiso\fR\fR
  62 .ad
  63 .sp .6
  64 .RS 4n
  65 Create a Solaris ISO image of \fImedia-root\fR.
  66 .RE
  67 
  68 .sp
  69 .ne 2
  70 .na
  71 \fB\fB-l\fR \fIlabel\fR\fR
  72 .ad
  73 .sp .6
  74 .RS 4n
  75 Label/volume name of the ISO image (if \fB-o\fR option is specified). If
  76 \fB-o\fR is not specified, the name of Solaris directory under
  77 \fImedia-root\fR, for example, \fBSolaris_10\fR, will be used.
  78 .RE
  79 
  80 .sp
  81 .ne 2
  82 .na
  83 \fB\fB-v\fR\fR
  84 .ad
  85 .sp .6
  86 .RS 4n
  87 Verbose. Multiple \fB-v\fR options increase verbosity.
  88 .RE
  89 
  90 .SH OPERANDS
  91 .sp
  92 .LP
  93 The following operands are supported:
  94 .sp
  95 .ne 2
  96 .na
  97 \fB\fIpkg_or_patch\fR [\fIpkg_or_patch\fR ...]\fR
  98 .ad
  99 .sp .6
 100 .RS 4n
 101 One or more patches or packages (you can have both patches and packages in a
 102 single command) with which the Solaris installation media \fImedia-root\fR will
 103 be updated.
 104 .RE
 105 
 106 .SH EXAMPLES
 107 .LP
 108 \fBExample 1 \fRUpdating a Solaris Install Image with Patch and Package
 109 .sp
 110 .LP
 111 The following command updates the Solaris install image in \fBs10u1\fR by
 112 adding patch \fB123456-07\fR and package \fBSUNWfoo\fR.
 113 
 114 .sp
 115 .in +2
 116 .nf
 117 # \fB/usr/bin/updatemedia -d s10u1 SUNWfoo 123456-07\fR
 118 .fi
 119 .in -2
 120 .sp
 121 
 122 .SH ATTRIBUTES
 123 .sp
 124 .LP
 125 See \fBattributes\fR(5) for descriptions of the following attributes:
 126 .sp
 127 
 128 .sp
 129 .TS
 130 box;
 131 c | c
 132 l | l .
 133 ATTRIBUTE TYPE  ATTRIBUTE VALUE
 134 _
 135 Interface Stability     Committed
 136 .TE
 137 
 138 .SH SEE ALSO
 139 .sp
 140 .LP
 141 \fBcdrw\fR(1), \fBmkbootmedia\fR(1M), \fBattributes\fR(5)
 142 .sp
 143 .LP
 144 \fBmkisofs(8)\fR, (\fB/usr/share/man/man8/mkisofs.8\fR), in the
 145 \fBSUNWfsman\fR package (not a SunOS man page)