Changeset View
Changeset View
Standalone View
Standalone View
release/tools/vmimage.subr
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | vm_install_base() { | ||||
fi | fi | ||||
local hostname | local hostname | ||||
hostname="$(echo $(uname -o) | tr '[:upper:]' '[:lower:]')" | hostname="$(echo $(uname -o) | tr '[:upper:]' '[:lower:]')" | ||||
echo "hostname=\"${hostname}\"" >> ${DESTDIR}/etc/rc.conf | echo "hostname=\"${hostname}\"" >> ${DESTDIR}/etc/rc.conf | ||||
if [ "${VMFS}" = zfs ]; then | if [ "${VMFS}" = zfs ]; then | ||||
echo "zfs_enable=\"YES\"" >> ${DESTDIR}/etc/rc.conf | echo "zfs_enable=\"YES\"" >> ${DESTDIR}/etc/rc.conf | ||||
echo "zpool_reguid=\"zroot\"" >> ${DESTDIR}/etc/rc.conf | echo "zpool_reguid=\"zroot\"" >> ${DESTDIR}/etc/rc.conf | ||||
echo "zpool_upgrade=\"zroot\"" >> ${DESTDIR}/etc/rc.conf | |||||
fi | fi | ||||
if ! [ -z "${QEMUSTATIC}" ]; then | if ! [ -z "${QEMUSTATIC}" ]; then | ||||
export EMULATOR=/qemu | export EMULATOR=/qemu | ||||
cp ${QEMUSTATIC} ${DESTDIR}/${EMULATOR} | cp ${QEMUSTATIC} ${DESTDIR}/${EMULATOR} | ||||
fi | fi | ||||
mkdir -p ${DESTDIR}/dev | mkdir -p ${DESTDIR}/dev | ||||
▲ Show 20 Lines • Show All 238 Lines • Show Last 20 Lines |