OpenSolarisTM 2009.06 Release Repository Image 1. Overview For some deployments, direct access to the repository at http://pkg.opensolaris.org/release is not possible, or provides insufficient performance. This product contains the package metadata and content to allow the construction of a local copy of the release/ repository, which can then be made available on the local system or over a private network to other systems. It can be installed on multiple systems, which can in turn be configured as mirrors, to increase the available aggregate resources available to packaging clients. 2. Usage This product is provided in two forms: * A single ISO image, suitable for use with lofi(7D) for live mounting, or copying to a USB flash device * As a set of ISO images (possibly on media) suitable for burning to 4.7 GB DVD media. The following two procedures cover typical uses with each of these forms. Please note that the example commands listed in this document should be executed as root, or executed using the 'pfexec' command as appropriate for your environment. 2.1. Single image case To use the single ISO image, you must first make it available to the pkg.depotd(1m) server: lofiadm -a /osol-repo-0906-full.iso /dev/lofi/1 mount -F hsfs /dev/lofi/1 /mnt lofiadm -d /dev/lofi/1 Please note that not specifying a full, absolute path to the image will result in an error when attempting to mount the image. In addition, if you choose not to copy the contents of the repository directory in the ISO image to another filesystem, as directed below, you will have to remount the ISO image every time your system restarts to be able to use it with pkg.depotd(1m). Alternatively, for performance reasons, you may wish to relocate the repository to faster storage, such as a compressed ZFS filesystem. rsync(1) is a useful tool for a bulk copy of this kind. You can copy the repository directory and its contents to a destination of your choice using the following command: rsync -aP /mnt/repo Be aware that a trailing slash on /mnt/repo above (e.g. '/mnt/repo/') would copy the contents of the directory instead of the directory itself which will not provide the expected results. 2.1.1 Using a USB Flash Device The single ISO image can also be written directly to a USB flash device. To do so, you will need a USB flash device with a capacity of at least 8 GB. Any existing content will be overwritten. To copy the ISO image to a usb flash device, you will need to know the device name (e.g. /dev/dsk/c10t0d0p0). To determine the device name, use the rmformat(1) utility with the -l option. Next, ensure that any existing filesystem on the device has been unmounted using the rmumount(1) utility. The ISO image may then be copied to the flash device as follows: dd if=osol-repo-0906-full.iso of= ibs=32K obs=32K After that is complete, you may set a relevant label for the device using the rmformat(1) utility: rmformat -b '