vmimage.subr (38d59ac708a5f97be0d539379ca725490a9a6f21) | vmimage.subr (7d565d608f2aed33566ed8e6dc371e42b626686e) |
---|---|
1#!/bin/sh 2# 3# $FreeBSD$ 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 12write_partition_layout() { 13 14 case "${TARGET}:${TARGET_ARCH}" in 15 amd64:amd64 | i386:i386) | 1#!/bin/sh 2# 3# $FreeBSD$ 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 12write_partition_layout() { 13 14 case "${TARGET}:${TARGET_ARCH}" in 15 amd64:amd64 | i386:i386) |
16 mkimg -f gpt -b /boot/pmbr \ | 16 mkimg -s gpt -b /boot/pmbr \ |
17 -p freebsd-boot/bootfs:=/boot/gptboot \ 18 -p freebsd-swap/swapfs::1G \ 19 -p freebsd-ufs/rootfs:=${VMBASE} \ 20 -o ${VMIMAGE} 21 ;; 22 powerpc:powerpc*) | 17 -p freebsd-boot/bootfs:=/boot/gptboot \ 18 -p freebsd-swap/swapfs::1G \ 19 -p freebsd-ufs/rootfs:=${VMBASE} \ 20 -o ${VMIMAGE} 21 ;; 22 powerpc:powerpc*) |
23 mkimg -f apm \ | 23 mkimg -s apm \ |
24 -p freebsd-boot/bootfs:=/boot/boot1.hfs \ 25 -p freebsd-swap/swapfs::1G \ 26 -p freebsd-ufs/rootfs:=${VMBASE} \ 27 -o ${VMIMAGE} 28 ;; 29 *) 30 # ENOTSUPP 31 return 1 --- 130 unchanged lines hidden --- | 24 -p freebsd-boot/bootfs:=/boot/boot1.hfs \ 25 -p freebsd-swap/swapfs::1G \ 26 -p freebsd-ufs/rootfs:=${VMBASE} \ 27 -o ${VMIMAGE} 28 ;; 29 *) 30 # ENOTSUPP 31 return 1 --- 130 unchanged lines hidden --- |