vmimage.subr (1ca8842f3ad9725863c9affc044d1974a51818a9) | vmimage.subr (fd17ea8c1849039c436f7192ca407db70561df03) |
---|---|
1#!/bin/sh 2# 3# $FreeBSD$ 4# 5# 6# Common functions for virtual machine image build scripts. 7# 8 --- 117 unchanged lines hidden (view full) --- 126vm_extra_install_packages() { 127 if [ -z "${VM_EXTRA_PACKAGES}" ]; then 128 return 0 129 fi 130 mkdir -p ${DESTDIR}/dev 131 mount -t devfs devfs ${DESTDIR}/dev 132 chroot ${DESTDIR} ${EMULATOR} env ASSUME_ALWAYS_YES=yes \ 133 /usr/sbin/pkg bootstrap -y | 1#!/bin/sh 2# 3# $FreeBSD$ 4# 5# 6# Common functions for virtual machine image build scripts. 7# 8 --- 117 unchanged lines hidden (view full) --- 126vm_extra_install_packages() { 127 if [ -z "${VM_EXTRA_PACKAGES}" ]; then 128 return 0 129 fi 130 mkdir -p ${DESTDIR}/dev 131 mount -t devfs devfs ${DESTDIR}/dev 132 chroot ${DESTDIR} ${EMULATOR} env ASSUME_ALWAYS_YES=yes \ 133 /usr/sbin/pkg bootstrap -y |
134 chroot ${DESTDIR} ${EMULATOR} env ASSUME_ALWAYS_YES=yes \ 135 /usr/sbin/pkg install -y ${VM_EXTRA_PACKAGES} | 134 for p in ${ASSUME_ALWAYS_YES}; do 135 chroot ${DESTDIR} ${EMULATOR} env ASSUME_ALWAYS_YES=yes \ 136 /usr/sbin/pkg install -y ${p} 137 done |
136 umount_loop ${DESTDIR}/dev 137 138 return 0 139} 140 141vm_extra_install_ports() { 142 # Prototype. When overridden, installs additional ports within the 143 # virtual machine environment. --- 122 unchanged lines hidden --- | 138 umount_loop ${DESTDIR}/dev 139 140 return 0 141} 142 143vm_extra_install_ports() { 144 # Prototype. When overridden, installs additional ports within the 145 # virtual machine environment. --- 122 unchanged lines hidden --- |