Lines Matching refs:archive

329 # Perform validation and cleanup in the zoneroot after unpacking the archive.
358 # Determine flar archive style from identification file.
370 # archive is standard input. See flash_archive(4) man page.
373 # "archive". We need to unpack in place in order to properly handle nested
410 # If we're at the archive, we're done skipping sections.
411 if [[ "$section_name" == "archive" ]]; then
417 # how to unpack the archive.
443 # an arbitrary number of sections but the archive section
472 # Check for an archive made from a ZFS root pool.
480 # Get the information needed to unpack the archive.
512 # Extract archive
529 # Get the archive base.
531 # We must unpack the archive in the right place within the zonepath so
537 # zone's zonepath. For a physical system, if the archive is made using an
539 # archive from a variety of locations;
544 # when we unpack the archive but this will only work if the the archive's
550 # the archive.
553 # ./var, ./usr.... This is also the case we see when we get an archive
554 # of a physical sytem. We must be in ZONEROOT when we unpack the archive.
561 # properly unpack the archive into the zone. It sets the ARCHIVE_BASE
567 archive=$2
572 base=`$stage1 $archive | $stage2 2>/dev/null | nawk -F/ '{
573 # Check for an absolute path archive
593 # zonepath, otherwise this must be an archive *of*
601 # (or at the top level of a full system archive which
634 # Unpack cpio archive into zoneroot.
639 archive=$2
641 get_archive_base "$stage1" "$archive" "cpio -it"
645 vlog "cd \"$ARCHIVE_BASE\" && $stage1 \"$archive\" | cpio $cpioopts"
648 # how the archive was made.
649 ( cd "$ARCHIVE_BASE" && $stage1 "$archive" | cpio $cpioopts )
657 # Unpack pax archive into zoneroot.
661 archive=$1
663 get_archive_base "cat" "$archive" "pax"
669 vlog "cd \"$ARCHIVE_BASE\" && pax -r -f \"$archive\" $filtopt"
672 # how the archive was made.
673 ( cd "$ARCHIVE_BASE" && pax -r -f "$archive" $filtopt )
685 archive=$1
687 vlog "cd \"$ZONEROOT\" && ufsrestore rf \"$archive\""
693 ( cd "$ZONEROOT" && ufsrestore rf "$archive" < /dev/null )
733 # how the archive was made.
747 # The first argument specifies the type of image: archive, directory or stdin.
800 # Common code for both archive and stdin stream.
802 if [[ "$intype" == "archive" ]]; then
815 # Setup vars for the archive type we have.
818 filetypename="cpio archive"
821 filetypename="bzipped cpio archive"
824 filetypename="gzipped cpio archive"
827 filetypename="ufsdump archive"
831 filetypename="flash archive"
835 filetypename="flash archive"
839 filetypename="flash archive"
843 filetypename="tar archive"
845 *USTAR\ tar\ archive)
847 filetypename="tar archive"
851 filetypename="pax (xustar) archive"
853 *USTAR\ tar\ archive\ extended\ format*)
855 filetypename="pax (xustar) archive"
887 # out when extracting from a CPIO or PAX archive. We'll add the fs
915 # Set up any fs mounts so the archive will install into the correct
959 # on how the archive was made.
1018 e_unknown_archive=$(gettext "Error: Unknown archive format. Must be a flash archive, a cpio archive (can also be gzipped or bzipped), a pax XUSTAR archive, or a level 0 ufsdump archive.")
1019 e_absolute_archive=$(gettext "Error: archive contains absolute paths instead of relative paths.")
1020 e_mismatch_archive=$(gettext "Error: the archive top-level directory (%s) does not match the zonepath (%s).")
1030 " documentation for the recommended way to create the archive.")
1032 m_analyse_archive=$(gettext "Analysing the archive")
1035 not_flar=$(gettext "Input is not a flash archive")
1036 bad_flar=$(gettext "Flash archive is a corrupt")
1037 bad_zfs_flar=$(gettext "Flash archive contains a ZFS send stream.\n\tRecreate the flar using the -L option with cpio or pax.")
1038 f_unpack_failed=$(gettext "Unpacking the archive failed")