1#!/bin/sh
2#
3# $FreeBSD: head/release/tools/vmimage.subr 281783 2015-04-20 19:54:54Z 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 powerpc:powerpc*)
33 mkimg -s apm \
34 -p apple-boot/bootfs:=${BOOTFILES}/powerpc/boot1.chrp/boot1.hfs \
35 ${SWAPOPT} \
36 -p freebsd-ufs/rootfs:=${VMBASE} \
37 -o ${VMIMAGE}
38 ;;
39 *)
--- 186 unchanged lines hidden ---
2#
3# $FreeBSD: head/release/tools/vmimage.subr 281783 2015-04-20 19:54:54Z 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 powerpc:powerpc*)
33 mkimg -s apm \
34 -p apple-boot/bootfs:=${BOOTFILES}/powerpc/boot1.chrp/boot1.hfs \
35 ${SWAPOPT} \
36 -p freebsd-ufs/rootfs:=${VMBASE} \
37 -o ${VMIMAGE}
38 ;;
39 *)
--- 186 unchanged lines hidden ---