aboutsummaryrefslogtreecommitdiff
path: root/release/tools/vmimage.subr
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2015-01-14 15:23:58 +0000
committerGlen Barber <gjb@FreeBSD.org>2015-01-14 15:23:58 +0000
commitab7c3d12db7f490a23c1b94d80696d2aefb4ed12 (patch)
treebe3c9363d7b42b35a711030ef0daae7033cdaca0 /release/tools/vmimage.subr
parentee1108eba87a8d7e9c88602a85fd57b4e3a379b8 (diff)
downloadsrc-ab7c3d12db7f490a23c1b94d80696d2aefb4ed12.tar.gz
src-ab7c3d12db7f490a23c1b94d80696d2aefb4ed12.zip
Enable the textmode console by default for VM images,
since there is no way to tell if the environment will be able to use the graphics-mode console. Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/projects/release-vmimage/; revision=277183
Diffstat (limited to 'release/tools/vmimage.subr')
-rw-r--r--release/tools/vmimage.subr6
1 files changed, 6 insertions, 0 deletions
diff --git a/release/tools/vmimage.subr b/release/tools/vmimage.subr
index 2fd70fffea5c..52530e8397f2 100644
--- a/release/tools/vmimage.subr
+++ b/release/tools/vmimage.subr
@@ -84,6 +84,12 @@ vm_install_base() {
>> ${DESTDIR}/etc/fstab
fi
+ # Set hw.vga.textmode=1, with the assumption that the hypervisor
+ # will not be capable of using the graphics console mode.
+ echo '# Comment the next line to enable graphical console mode' \
+ >> ${DESTDIR}/boot/loader.conf
+ echo 'hw.vga.textmode=1' >> ${DESTDIR}/boot/loader.conf
+
mkdir -p ${DESTDIR}/dev
mount -t devfs devfs ${DESTDIR}/dev
chroot ${DESTDIR} /usr/bin/newaliases