1#!/bin/sh 2# |
3# $FreeBSD: head/release/tools/vmimage.subr 281802 2015-04-21 00:48:35Z gjb $ |
4# 5# 6# Common functions for virtual machine image build scripts. 7# 8 9export PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin" 10trap "cleanup" INT QUIT TRAP ABRT TERM 11 --- 12 unchanged lines hidden (view full) --- 24 case "${TARGET}:${TARGET_ARCH}" in 25 amd64:amd64 | i386:i386) 26 mkimg -s gpt -b ${BOOTFILES}/i386/pmbr/pmbr \ 27 -p freebsd-boot/bootfs:=${BOOTFILES}/i386/gptboot/gptboot \ 28 ${SWAPOPT} \ 29 -p freebsd-ufs/rootfs:=${VMBASE} \ 30 -o ${VMIMAGE} 31 ;; |
32 arm64:aarch64) 33 mkimg -s gpt \ 34 -p efi/efiboot:=${BOOTFILES}/efi/boot1/boot1.efifat \ 35 ${SWAPOPT} \ 36 -p freebsd-ufs/rootfs:=${VMBASE} \ 37 -o ${VMIMAGE} 38 ;; |
39 powerpc:powerpc*) 40 mkimg -s apm \ 41 -p apple-boot/bootfs:=${BOOTFILES}/powerpc/boot1.chrp/boot1.hfs \ 42 ${SWAPOPT} \ 43 -p freebsd-ufs/rootfs:=${VMBASE} \ 44 -o ${VMIMAGE} 45 ;; 46 *) --- 186 unchanged lines hidden --- |