mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 12:01:09 +01:00
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
This commit is contained in:
parent
ee1108eba8
commit
ab7c3d12db
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/release-vmimage/; revision=277183
@ -84,6 +84,12 @@ vm_install_base() {
|
|||||||
>> ${DESTDIR}/etc/fstab
|
>> ${DESTDIR}/etc/fstab
|
||||||
fi
|
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
|
mkdir -p ${DESTDIR}/dev
|
||||||
mount -t devfs devfs ${DESTDIR}/dev
|
mount -t devfs devfs ${DESTDIR}/dev
|
||||||
chroot ${DESTDIR} /usr/bin/newaliases
|
chroot ${DESTDIR} /usr/bin/newaliases
|
||||||
|
Loading…
Reference in New Issue
Block a user