mk-vmimage.sh (4bf53d0b4672dca72c809b44349fb82657f482f5) | mk-vmimage.sh (08a75d1f0e7d885f5a891e0e3e64a540daf15689) |
---|---|
1#!/bin/sh 2#- 3# Copyright (c) 2014, 2015 The FreeBSD Foundation 4# All rights reserved. 5# 6# This software was developed by Glen Barber under sponsorship 7# from the FreeBSD Foundation. 8# --- 79 unchanged lines hidden (view full) --- 88 fi 89 90 . "${VMBUILDCONF}" 91 92 if [ ! -z "${VMCONFIG}" ] && [ ! -c "${VMCONFIG}" ]; then 93 . "${VMCONFIG}" 94 fi 95 | 1#!/bin/sh 2#- 3# Copyright (c) 2014, 2015 The FreeBSD Foundation 4# All rights reserved. 5# 6# This software was developed by Glen Barber under sponsorship 7# from the FreeBSD Foundation. 8# --- 79 unchanged lines hidden (view full) --- 88 fi 89 90 . "${VMBUILDCONF}" 91 92 if [ ! -z "${VMCONFIG}" ] && [ ! -c "${VMCONFIG}" ]; then 93 . "${VMCONFIG}" 94 fi 95 |
96 case ${TARGET}:${TARGET_ARCH} in 97 arm64:aarch64) 98 ROOTLABEL="ufs" 99 NOSWAP=1 100 ;; 101 *) 102 ROOTLABEL="gpt" 103 ;; 104 esac 105 |
|
96 vm_create_base 97 vm_install_base 98 vm_extra_install_base 99 vm_extra_install_packages 100 vm_extra_install_ports 101 vm_extra_enable_services 102 vm_extra_pre_umount 103 vm_extra_pkg_rmcache 104 cleanup 105 vm_copy_base 106 vm_create_disk || return 0 107 vm_extra_create_disk 108 109 return 0 110} 111 112main "$@" | 106 vm_create_base 107 vm_install_base 108 vm_extra_install_base 109 vm_extra_install_packages 110 vm_extra_install_ports 111 vm_extra_enable_services 112 vm_extra_pre_umount 113 vm_extra_pkg_rmcache 114 cleanup 115 vm_copy_base 116 vm_create_disk || return 0 117 vm_extra_create_disk 118 119 return 0 120} 121 122main "$@" |