vmimage.subr (e5d34ca9fddcae66465f01e5a7725a31f8df8493) | vmimage.subr (2170fff8a596fb3a19eae7f611ba3646b26c89cd) |
---|---|
1#!/bin/sh 2# 3# $FreeBSD$ 4# 5# 6# Common functions for virtual machine image build scripts. 7# 8 --- 126 unchanged lines hidden (view full) --- 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 142 | 1#!/bin/sh 2# 3# $FreeBSD$ 4# 5# 6# Common functions for virtual machine image build scripts. 7# 8 --- 126 unchanged lines hidden (view full) --- 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 142 |
143 local hostname 144 hostname="$(echo $(uname -o) | tr '[:upper:]' '[:lower:]')" 145 echo "hostname=\"${hostname}\"" >> ${DESTDIR}/etc/rc.conf 146 |
|
143 mkdir -p ${DESTDIR}/dev 144 mount -t devfs devfs ${DESTDIR}/dev 145 chroot ${DESTDIR} /usr/bin/newaliases 146 chroot ${DESTDIR} /etc/rc.d/ldconfig forcestart 147 umount_loop ${DESTDIR}/dev 148 149 cp /etc/resolv.conf ${DESTDIR}/etc/resolv.conf 150 --- 99 unchanged lines hidden --- | 147 mkdir -p ${DESTDIR}/dev 148 mount -t devfs devfs ${DESTDIR}/dev 149 chroot ${DESTDIR} /usr/bin/newaliases 150 chroot ${DESTDIR} /etc/rc.d/ldconfig forcestart 151 umount_loop ${DESTDIR}/dev 152 153 cp /etc/resolv.conf ${DESTDIR}/etc/resolv.conf 154 --- 99 unchanged lines hidden --- |