aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-11-03 04:46:15 +0100
committerThomas Deutschmann <whissi@gentoo.org>2019-11-24 20:59:06 +0100
commit2ba2be900664415dc5a34cc2cfdb82ecab3c4ce5 (patch)
tree45e54950eb3e94eb83318aceaf75b99c40cf2bf9 /gen_cmdline.sh
parentgen_determineargs.sh: determine_real_args(): Expand $TMPDIR (diff)
downloadgenkernel-2ba2be900664415dc5a34cc2cfdb82ecab3c4ce5.tar.gz
genkernel-2ba2be900664415dc5a34cc2cfdb82ecab3c4ce5.tar.bz2
genkernel-2ba2be900664415dc5a34cc2cfdb82ecab3c4ce5.zip
Add support for a custom font at boot
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gen_cmdline.sh')
-rwxr-xr-xgen_cmdline.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/gen_cmdline.sh b/gen_cmdline.sh
index fa8a7c35..c33f738d 100755
--- a/gen_cmdline.sh
+++ b/gen_cmdline.sh
@@ -150,6 +150,10 @@ longusage() {
echo " if missing, CREATE host key(s) FROM current HOST running genkernel"
echo " (not recommended) or don't embed any host key in initramfs and"
echo " generate at RUNTIME (dropbear -R)"
+ echo " --boot-font=(current|<file>|none)"
+ echo " Embed CURRENT active console font from host running genkernel"
+ echo " or specified PSF font file into initramfs and activate early on boot."
+ echo " Use NONE (default) to not embed any PSF file."
echo " --bootloader=(grub|grub2)"
echo " Add new kernel to GRUB (grub) or GRUB2 (grub2) bootloader"
echo " --no-bootloader Skip bootloader update"
@@ -440,6 +444,11 @@ parse_cmdline() {
CMD_MULTIPATH=$(parse_optbool "$*")
print_info 3 "CMD_MULTIPATH: ${CMD_MULTIPATH}"
;;
+ --boot-font=*)
+ CMD_BOOTFONT="${*#*=}"
+ [ -z "${CMD_BOOTFONT}" ] && CMD_BOOTFONT="none"
+ print_info 3 "CMD_BOOTFONT: ${CMD_BOOTFONT}"
+ ;;
--bootloader=*)
CMD_BOOTLOADER="${*#*=}"
[ -z "${CMD_BOOTLOADER}" ] && CMD_BOOTLOADER="no"