Skip to content
Snippets Groups Projects
Unverified Commit 9fb29079 authored by Casey's avatar Casey :recycle:
Browse files

main/postmarketos-initramfs: get to splash faster (MR 4204)


With full-fat mdev supporting by-partlabel lookups, there is a small
delay during startup. As mdev and dynamic partitions aren't actually
needed for the framebuffer device, move show_splash earlier.

Furthermore, slightly rework setup_framebuffer to not dump the verbose
message about waiting for the framebuffer unless the framebuffer isn't
found.

Signed-off-by: default avatarCaleb Connolly <caleb@connolly.tech>
parent 97727c59
No related branches found
No related tags found
No related merge requests found
......@@ -18,10 +18,10 @@ setup_firmware_path
# shellcheck disable=SC2154
load_modules /lib/modules/initramfs.load "usb_f_rndis"
setup_mdev
setup_dynamic_partitions "${deviceinfo_super_partitions:=}"
setup_framebuffer
show_splash "Loading..."
setup_mdev
setup_dynamic_partitions "${deviceinfo_super_partitions:=}"
mount_subpartitions
run_hooks /hooks
......
......@@ -703,15 +703,14 @@ setup_framebuffer() {
fi
# Wait for /dev/fb0
echo "NOTE: Waiting 10 seconds for the framebuffer /dev/fb0."
echo "If your device does not have a framebuffer, disable this with:"
echo "no_framebuffer=true in <https://postmarketos.org/deviceinfo>"
for _ in $(seq 1 100); do
[ -e "/dev/fb0" ] && break
sleep 0.1
done
if ! [ -e "/dev/fb0" ]; then
echo "ERROR: /dev/fb0 did not appear!"
echo "ERROR: /dev/fb0 did not appear after waiting 10 seconds!"
echo "If your device does not have a framebuffer, disable this with:"
echo "no_framebuffer=true in <https://postmarketos.org/deviceinfo>"
return
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment