Skip to content

Commit be37517

Browse files
committed
20-console-autosize.sh: respect mkinitcpio consolefont
1 parent f681260 commit be37517

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

zfsbootmenu/hooks/early-setup.d/20-console-autosize.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ fi
2020
tty_re='/dev/tty[0-9]'
2121
[[ ${control_term} =~ ${tty_re} ]] || exit 1
2222

23+
# Respect custom fonts set by the 'consolefont' mkinitcpio module
24+
if [ -e /consolefont.psfu ] || [ -e /consolefont.psf ]; then
25+
exit 1
26+
fi
27+
2328
# rd.vconsole.font is consumed by the Dracut i18n module, which is forced to run before this hook
2429
# If the user has specified a specific font/size, do not attempt to override it
2530

0 commit comments

Comments
 (0)