vmimage.subr (08a75d1f0e7d885f5a891e0e3e64a540daf15689) | vmimage.subr (26e4122a80bbaa50a4067bd7cc2c1050ef58a318) |
---|---|
1#!/bin/sh 2# 3# $FreeBSD$ 4# 5# 6# Common functions for virtual machine image build scripts. 7# 8 --- 167 unchanged lines hidden (view full) --- 176vm_extra_install_ports() { 177 # Prototype. When overridden, installs additional ports within the 178 # virtual machine environment. 179 180 return 0 181} 182 183vm_extra_pre_umount() { | 1#!/bin/sh 2# 3# $FreeBSD$ 4# 5# 6# Common functions for virtual machine image build scripts. 7# 8 --- 167 unchanged lines hidden (view full) --- 176vm_extra_install_ports() { 177 # Prototype. When overridden, installs additional ports within the 178 # virtual machine environment. 179 180 return 0 181} 182 183vm_extra_pre_umount() { |
184 # Prototype. When overridden, installs additional ports within the 185 # virtual machine environment. | 184 # Prototype. When overridden, performs additional tasks within the 185 # virtual machine environment prior to unmounting the filesystem. 186 # Note: When overriding this function, removing resolv.conf in the 187 # disk image must be included. |
186 187 rm -f ${DESTDIR}/etc/resolv.conf 188 return 0 189} 190 191vm_extra_pkg_rmcache() { 192 if [ -e ${DESTDIR}/usr/local/sbin/pkg ]; then 193 chroot ${DESTDIR} env ASSUME_ALWAYS_YES=yes \ --- 38 unchanged lines hidden --- | 188 189 rm -f ${DESTDIR}/etc/resolv.conf 190 return 0 191} 192 193vm_extra_pkg_rmcache() { 194 if [ -e ${DESTDIR}/usr/local/sbin/pkg ]; then 195 chroot ${DESTDIR} env ASSUME_ALWAYS_YES=yes \ --- 38 unchanged lines hidden --- |