The kernel freezes every process before it loads a hibernated image, so the screen looked hung for as long as the load took. A drop-in on systemd-hibernate-resume.service now opens the kernel console just before resume, draws a band across the middle of tty12 and confines the kernel's progress lines to it. The running bootvine stops drawing and stops taking the console back meanwhile, and repaints if no image was restored.
20 lines
556 B
Bash
Executable File
20 lines
556 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
build() {
|
|
add_binary bootvine
|
|
add_systemd_unit bootvine.service
|
|
add_file /usr/lib/systemd/system/systemd-hibernate-resume.service.d/bootvine.conf
|
|
if [[ -f /etc/bootvine.toml ]]; then
|
|
add_file /etc/bootvine.toml
|
|
fi
|
|
add_symlink /usr/lib/systemd/system/sysinit.target.wants/bootvine.service \
|
|
/usr/lib/systemd/system/bootvine.service
|
|
}
|
|
|
|
help() {
|
|
cat <<HELP
|
|
Shows a live dependency tree of systemd jobs while the initramfs boots.
|
|
Requires the systemd hook; add sd-bootvine after it in HOOKS.
|
|
HELP
|
|
}
|