root_archive.1m revision c10c16dec587a0662068f6e2991c29ed3a9db943
te
Copyright (c) 2009, 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]
root_archive 1M "9 Sep 2009" "SunOS 5.11" "System Administration Commands"
NAME
root_archive - manage bootable miniroot archives
SYNOPSIS

/boot/solaris/bin/root_archive pack archive root

/boot/solaris/bin/root_archive unpack archive root

/boot/solaris/bin/root_archive packmedia solaris_image root

/boot/solaris/bin/root_archive unpackmedia solaris_image root
DESCRIPTION

The root_archive utility is used to manipulate boot archives and the bootable miniroot(s) in a Solaris install image. The utility can pack and unpack boot archives and image miniroots. Both ufs and hsfs (iso9660) format archives can be unpacked, although only ufs format is generated when packing.

For normal, boot-related system administration, bootadm(1M) is recommended. root_archive's primary purpose is to enable OEMs to add or update a driver or other component on the Solaris install media.

A miniroot and a boot archive is closely associated with the release it is intended to boot. To ensure that the tools and system services used to construct the miniroot match, miniroot manipulation must be performed only on a system running the same release for which the miniroot is intended to install.

SUBCOMMANDS

The root_archive command has the following subcommands:

pack archive root

Pack the contents of the root directory into the boot archive archive.

unpack archive root

Unpack the contents of the boot archive named archive to the directory named root.

packmedia solaris_image root

Create and pack the miniroot(s) in solaris_image from the contents of the directory named root.

unpackmedia solaris_image root

Unpack the contents of the miniroot(s) in solaris_image to the directory named root.

The contents of a miniroot are constructed to need the requirements of the release. When unpacking a miniroot, all the contents of the miniroot(s) are unpacked. When packing a miniroot, the source directory must contain all the necessary components with which to construct a miniroot. In general, this can only be achieved by first unpacking an existing miniroot.

EXAMPLES

Example 1 Unpacking the Miniroots in a Solaris x86 Install Image

The following command unpacks the miniroots in a Solaris image to the root directory in /export/release/latest.

# root_archive unpackmedia \e
/export/nv/solarisdvd.nvx_dvd/latest /export/release/latest/root

In the preceding, /export/nv/solarisdvd.nvx_dvd/latest represents a path to a Solaris x86 install image and /export/release/latest/root is a directory that will be purged or created, as necessary.

Example 2 Packing the Miniroots in a Solaris x86 Install Image

The following command creates and packs the miniroot(s) in a Solaris image from the contents of the directory /export/release/latest/root.

# root_archive packmedia \e
/export/nv/solarisdvd.nvx_dvd/latest /export/release/latest/root
EXIT STATUS

The following exit values are returned:

0

The command completed successfully.

1

The command exited due to an error.

ATTRIBUTES

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

ATTRIBUTE TYPEATTRIBUTE VALUE
Interface StabilityCommitted
SEE ALSO

cpio(1), bootadm(1M), mount(1M), attributes(5), lofi(7D)