vmimage.subr (efeb11a772e65d88562140c9f0cf82504bdb1079) vmimage.subr (a02bfc832740f019d863a87d6efe2594a4e903c8)
1#!/bin/sh
2#
3# $FreeBSD$
4#
5#
6# Common functions for virtual machine image build scripts.
7#
8

--- 113 unchanged lines hidden (view full) ---

122
123vm_extra_install_ports() {
124 # Prototype. When overridden, installs additional ports within the
125 # virtual machine environment.
126
127 return 0
128}
129
1#!/bin/sh
2#
3# $FreeBSD$
4#
5#
6# Common functions for virtual machine image build scripts.
7#
8

--- 113 unchanged lines hidden (view full) ---

122
123vm_extra_install_ports() {
124 # Prototype. When overridden, installs additional ports within the
125 # virtual machine environment.
126
127 return 0
128}
129
130vm_extra_pre_umount() {
131 # Prototype. When overridden, installs additional ports within the
132 # virtual machine environment.
133
134 return 0
135}
136
130vm_umount_base() {
131 i=0
132 sync
133 while ! umount ${DESTDIR}/dev ${DESTDIR}; do
134 i=$(( $i + 1 ))
135 if [ $i -ge 10 ]; then
136 # This should never happen. But, it has happened.
137 msg="Cannot umount(8) ${DESTDIR}\n"

--- 27 unchanged lines hidden ---
137vm_umount_base() {
138 i=0
139 sync
140 while ! umount ${DESTDIR}/dev ${DESTDIR}; do
141 i=$(( $i + 1 ))
142 if [ $i -ge 10 ]; then
143 # This should never happen. But, it has happened.
144 msg="Cannot umount(8) ${DESTDIR}\n"

--- 27 unchanged lines hidden ---