From ab7c3d12db7f490a23c1b94d80696d2aefb4ed12 Mon Sep 17 00:00:00 2001 From: Glen Barber Date: Wed, 14 Jan 2015 15:23:58 +0000 Subject: [PATCH] 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 --- release/tools/vmimage.subr | 6 ++++++ 1 file changed, 6 insertions(+) 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