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

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

117vm_install_base() {
118 # Installs the FreeBSD userland/kernel to the virtual machine disk.
119
120 cd ${WORLDDIR} && \
121 make DESTDIR=${DESTDIR} \
122 installworld installkernel distribution || \
123 err "\n\nCannot install the base system to ${DESTDIR}."
124
1#!/bin/sh
2#
3# $FreeBSD$
4#
5#
6# Common functions for virtual machine image build scripts.
7#
8

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

117vm_install_base() {
118 # Installs the FreeBSD userland/kernel to the virtual machine disk.
119
120 cd ${WORLDDIR} && \
121 make DESTDIR=${DESTDIR} \
122 installworld installkernel distribution || \
123 err "\n\nCannot install the base system to ${DESTDIR}."
124
125 # Bootstrap etcupdate(8) and mergemaster(8) databases.
126 mkdir -p ${DESTDIR}/var/db/etcupdate
127 etcupdate extract -B \
128 -M "TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH}" \
129 -s ${WORLDDIR} -d ${DESTDIR}/var/db/etcupdate
130 sh ${WORLDDIR}/release/scripts/mm-mtree.sh -m ${WORLDDIR} \
131 -F "TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH}" \
132 -D ${DESTDIR}
133
125 echo '# Custom /etc/fstab for FreeBSD VM images' \
126 > ${DESTDIR}/etc/fstab
127 echo "/dev/${ROOTLABEL}/rootfs / ufs rw 1 1" \
128 >> ${DESTDIR}/etc/fstab
129 if [ -z "${NOSWAP}" ]; then
130 echo '/dev/gpt/swapfs none swap sw 0 0' \
131 >> ${DESTDIR}/etc/fstab
132 fi

--- 108 unchanged lines hidden ---
134 echo '# Custom /etc/fstab for FreeBSD VM images' \
135 > ${DESTDIR}/etc/fstab
136 echo "/dev/${ROOTLABEL}/rootfs / ufs rw 1 1" \
137 >> ${DESTDIR}/etc/fstab
138 if [ -z "${NOSWAP}" ]; then
139 echo '/dev/gpt/swapfs none swap sw 0 0' \
140 >> ${DESTDIR}/etc/fstab
141 fi

--- 108 unchanged lines hidden ---