Skip to content

Commit b5fb075

Browse files
committed
early-setup.d/: create generic hook, console-init now dracut only
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
1 parent ed2272c commit b5fb075

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
# print an "empty" string to the screen to force it to recalculate
4+
# with out this, EFI frame buffers will possibly have the wrong size
5+
6+
echo -e "\033[0;30m ... \033[0m"

zfsbootmenu/hooks/early-setup.d/10-console-init.sh renamed to zfsbootmenu/hooks/early-setup.d/20-dracut-console-init.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,5 @@ fi
2323
# There is nothing to do without a valid control_term device
2424
[ -c "${control_term}" ] || exit 0
2525

26-
# print an "empty" string to the screen to force it to recalculate
27-
# with out this, EFI frame buffers will possibly have the wrong size
28-
echo -e "\033[0;30m ... \033[0m"
29-
3026
# Try to initialize the console
3127
/lib/udev/console_init "${control_term##*/}" >/dev/null 2>&1

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

File renamed without changes.

0 commit comments

Comments
 (0)