mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
lualoader: Add distinct brand for installer
Make it obvious to users that the system is booting into the installer. Reviewed by: kevans, manu Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D51001
This commit is contained in:
parent
cbb6e747af
commit
ac7a19d41e
5 changed files with 30 additions and 1 deletions
|
|
@ -245,6 +245,7 @@ disc1: ${PKGBASE_REPO}
|
|||
echo debug.witness.trace=0 >> ${.TARGET}/etc/sysctl.conf
|
||||
echo vfs.mountroot.timeout=\"10\" >> ${.TARGET}/boot/loader.conf
|
||||
echo kernels_autodetect=\"NO\" >> ${.TARGET}/boot/loader.conf
|
||||
echo loader_brand=\"install\" >> ${.TARGET}/boot/loader.conf
|
||||
echo loader_menu_multi_user_prompt=\"Installer\" >> ${.TARGET}/boot/loader.conf
|
||||
cp ${.CURDIR}/rc.local ${.TARGET}/etc
|
||||
echo "./etc/resolv.conf type=link uname=root gname=wheel mode=0644 link=/tmp/bsdinstall_etc/resolv.conf" >> ${.TARGET}/METALOG
|
||||
|
|
@ -284,6 +285,7 @@ bootonly:
|
|||
echo debug.witness.trace=0 >> ${.TARGET}/etc/sysctl.conf
|
||||
echo vfs.mountroot.timeout=\"10\" >> ${.TARGET}/boot/loader.conf
|
||||
echo kernels_autodetect=\"NO\" >> ${.TARGET}/boot/loader.conf
|
||||
echo loader_brand=\"install\" >> ${.TARGET}/boot/loader.conf
|
||||
echo loader_menu_multi_user_prompt=\"Installer\" >> ${.TARGET}/boot/loader.conf
|
||||
cp ${.CURDIR}/rc.local ${.TARGET}/etc
|
||||
echo "./etc/resolv.conf type=link uname=root gname=wheel mode=0644 link=/tmp/bsdinstall_etc/resolv.conf" >> ${.TARGET}/METALOG
|
||||
|
|
@ -338,6 +340,7 @@ dvd: ${PKGBASE_REPO}
|
|||
echo hostid_enable=\"NO\" >> ${.TARGET}/etc/rc.conf
|
||||
echo debug.witness.trace=0 >> ${.TARGET}/etc/sysctl.conf
|
||||
echo vfs.mountroot.timeout=\"10\" >> ${.TARGET}/boot/loader.conf
|
||||
echo loader_brand=\"install\" >> ${.TARGET}/boot/loader.conf
|
||||
echo kernels_autodetect=\"NO\" >> ${.TARGET}/boot/loader.conf
|
||||
echo loader_menu_multi_user_prompt=\"Installer\" >> ${.TARGET}/boot/loader.conf
|
||||
cp ${.CURDIR}/rc.local ${.TARGET}/etc
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
.include <bsd.init.mk>
|
||||
|
||||
FILES+= freebsd-brand-rev.png freebsd-brand.png freebsd-logo-rev.png
|
||||
FILES+= freebsd-brand-rev.png freebsd-brand.png freebsd-install-brand-rev.png \
|
||||
freebsd-logo-rev.png
|
||||
|
||||
FILESDIR= /boot/images
|
||||
|
||||
|
|
|
|||
BIN
stand/images/freebsd-install-brand-rev.png
Normal file
BIN
stand/images/freebsd-install-brand-rev.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.5 KiB |
|
|
@ -24,6 +24,7 @@ FILES= cli.lua \
|
|||
gfx-beastie.lua \
|
||||
gfx-beastiebw.lua \
|
||||
gfx-fbsdbw.lua \
|
||||
gfx-install.lua \
|
||||
gfx-orb.lua \
|
||||
gfx-orbbw.lua \
|
||||
menu.lua \
|
||||
|
|
|
|||
24
stand/lua/gfx-install.lua
Normal file
24
stand/lua/gfx-install.lua
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
--
|
||||
-- Copyright (c) 2025 Joseph Mingrone <jrm@FreeBSD.org>
|
||||
--
|
||||
-- SPDX-License-Identifier: BSD-2-Clause
|
||||
--
|
||||
|
||||
return {
|
||||
brand = {
|
||||
ascii = {
|
||||
image = {
|
||||
" _____ ____ ____ ____ ___ _ _ _",
|
||||
"| ___| __ ___ ___| __ ) ___|| _ \\ |_ _|_ __ ___| |_ __ _| | | ___ _ __",
|
||||
"| |_ | '__/ _ \\/ _ \\ _ \\___ \\| | | | | || '_ \\/ __| __/ _` | | |/ _ \\ '__|",
|
||||
"| _|| | | __/ __/ |_) |__) | |_| | | || | | \\__ \\ || (_| | | | __/ |",
|
||||
"|_| |_| \\___|\\___|____/____/|____/ |___|_| |_|___/\\__\\__,_|_|_|\\___|_|",
|
||||
},
|
||||
requires_color = false,
|
||||
},
|
||||
fb = {
|
||||
image = "/boot/images/freebsd-install-brand-rev.png",
|
||||
width = 80,
|
||||
},
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue