Skip to content

Commit

Permalink
early-setup.d/: create generic hook, console-init now dracut only
Browse files Browse the repository at this point in the history
People building with mkinitcpio still benefit from triggering a screen size
recalculation. Move that to an early hook that's run for all frameworks.

Fixes #706
  • Loading branch information
zdykstra committed Jan 18, 2025
1 parent ed2272c commit c4ae080
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions zfsbootmenu/hooks/early-setup.d/10-generic-efi-init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# print an "empty" string to the screen to force it to recalculate
# with out this, EFI frame buffers will possibly have the wrong size

echo -e "\033[0;30m ... \033[0m"
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,5 @@ fi
# There is nothing to do without a valid control_term device
[ -c "${control_term}" ] || exit 0

# print an "empty" string to the screen to force it to recalculate
# with out this, EFI frame buffers will possibly have the wrong size
echo -e "\033[0;30m ... \033[0m"

# Try to initialize the console
/lib/udev/console_init "${control_term##*/}" >/dev/null 2>&1

0 comments on commit c4ae080

Please sign in to comment.