vmimage.subr (be2bc82f18fb544c5a62b02f6faf2e320e0e881e) | vmimage.subr (fbece7609573bd51080e949df03fa3d803a637ae) |
---|---|
1#!/bin/sh 2# 3# $FreeBSD$ 4# 5# 6# Common functions for virtual machine image build scripts. 7# 8 --- 181 unchanged lines hidden (view full) --- 190vm_create_disk() { 191 echo "Creating image... Please wait." 192 echo 193 194 if [ -z "${NOSWAP}" ]; then 195 SWAPOPT="-p freebsd-swap/swapfs::${SWAPSIZE}" 196 fi 197 | 1#!/bin/sh 2# 3# $FreeBSD$ 4# 5# 6# Common functions for virtual machine image build scripts. 7# 8 --- 181 unchanged lines hidden (view full) --- 190vm_create_disk() { 191 echo "Creating image... Please wait." 192 echo 193 194 if [ -z "${NOSWAP}" ]; then 195 SWAPOPT="-p freebsd-swap/swapfs::${SWAPSIZE}" 196 fi 197 |
198 if [ -n "${VM_BOOTPARTSOFFSET}" ]; then 199 BOOTPARTSOFFSET=":${VM_BOOTPARTSOFFSET}" 200 fi 201 202 |
|
198 BOOTFILES="$(env TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ 199 WITH_UNIFIED_OBJDIR=yes \ 200 make -C ${WORLDDIR}/stand -V .OBJDIR)" 201 BOOTFILES="$(realpath ${BOOTFILES})" 202 203 case "${TARGET}:${TARGET_ARCH}" in 204 amd64:amd64 | i386:i386) 205 ESP=yes 206 BOOTPARTS="-b ${BOOTFILES}/i386/pmbr/pmbr \ | 203 BOOTFILES="$(env TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ 204 WITH_UNIFIED_OBJDIR=yes \ 205 make -C ${WORLDDIR}/stand -V .OBJDIR)" 206 BOOTFILES="$(realpath ${BOOTFILES})" 207 208 case "${TARGET}:${TARGET_ARCH}" in 209 amd64:amd64 | i386:i386) 210 ESP=yes 211 BOOTPARTS="-b ${BOOTFILES}/i386/pmbr/pmbr \ |
207 -p freebsd-boot/bootfs:=${BOOTFILES}/i386/gptboot/gptboot" | 212 -p freebsd-boot/bootfs:=${BOOTFILES}/i386/gptboot/gptboot${BOOTPARTSOFFSET}" |
208 ROOTFSPART="-p freebsd-ufs/rootfs:=${VMBASE}" 209 MAKEFSARGS="-B little" 210 ;; 211 arm64:aarch64 | riscv:riscv64*) 212 ESP=yes 213 BOOTPARTS= 214 ROOTFSPART="-p freebsd-ufs/rootfs:=${VMBASE}" 215 MAKEFSARGS="-B little" --- 52 unchanged lines hidden --- | 213 ROOTFSPART="-p freebsd-ufs/rootfs:=${VMBASE}" 214 MAKEFSARGS="-B little" 215 ;; 216 arm64:aarch64 | riscv:riscv64*) 217 ESP=yes 218 BOOTPARTS= 219 ROOTFSPART="-p freebsd-ufs/rootfs:=${VMBASE}" 220 MAKEFSARGS="-B little" --- 52 unchanged lines hidden --- |