summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2015-01-14 15:23:58 +0000
committergjb <gjb@FreeBSD.org>2015-01-14 15:23:58 +0000
commit5107643b94d616de8402a3bfdcf5c4c9fca0901e (patch)
treebe3c9363d7b42b35a711030ef0daae7033cdaca0 /release
parentf0d9ad0c8593615af8fe52950188ad6ba33044a5 (diff)
downloadFreeBSD-src-5107643b94d616de8402a3bfdcf5c4c9fca0901e.zip
FreeBSD-src-5107643b94d616de8402a3bfdcf5c4c9fca0901e.tar.gz
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
Diffstat (limited to 'release')
-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 2fd70ff..52530e8 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
OpenPOWER on IntegriCloud