aboutsummaryrefslogtreecommitdiff
path: root/release/tools
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2018-08-30 18:00:28 +0000
committerKyle Evans <kevans@FreeBSD.org>2018-08-30 18:00:28 +0000
commit9de0425ed9c299c51523c772b6dbee3e798c5462 (patch)
tree1dc38b542c01ee5687e28cb9308c456021a603a6 /release/tools
parentd3b764acc6430b5969ada27b751ff4fd99bbea67 (diff)
downloadsrc-9de0425ed9c299c51523c772b6dbee3e798c5462.tar.gz
src-9de0425ed9c299c51523c772b6dbee3e798c5462.zip
release.sh: disable colors and the beastie menu for ARM/ARM64 targets
lualoader has moved to a model where the user is expected to disable color as desired, rather than disabling it automatically for serial boots, due to more wide-spread support for color sequences. In a similar vain, though also to reduce special cases, lualoader no longer disables the beastie menu automatically for !x86. This was done in Forth land with a different loader.rc that simply didn't invoke the menu routines, thus wasn't necessary. This set of changes puts release images back to how they would've been experienced prior to the switch to Lua. Approved by: re (rgrimes)
Notes
Notes: svn path=/head/; revision=338400
Diffstat (limited to 'release/tools')
-rw-r--r--release/tools/arm.subr10
1 files changed, 10 insertions, 0 deletions
diff --git a/release/tools/arm.subr b/release/tools/arm.subr
index b39f140b18b0..690adf18e56c 100644
--- a/release/tools/arm.subr
+++ b/release/tools/arm.subr
@@ -151,6 +151,15 @@ arm_setup_fdt_overlays() {
>> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf
}
+arm_setup_minimal_loader() {
+ echo '# Disable the beastie menu and color' \
+ >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf
+ echo 'beastie_disable="YES"' \
+ >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf
+ echo 'loader_color="NO"' \
+ >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf
+}
+
arm_install_base() {
chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${DESTDIR}
eval chroot ${CHROOTDIR} make -C ${WORLDDIR} \
@@ -164,6 +173,7 @@ arm_install_base() {
arm_setup_usb_otg
arm64_setup_multicons
arm_setup_fdt_overlays
+ arm_setup_minimal_loader
echo '# Custom /etc/fstab for FreeBSD embedded images' \
> ${CHROOTDIR}/${DESTDIR}/etc/fstab