]> git.ipfire.org Git - thirdparty/dracut.git/commit - dracut.sh
Support the EFI Stub loader's splash image feature.
authorDonovan Tremura <neurognostic@protonmail.ch>
Sat, 15 Feb 2020 05:18:19 +0000 (05:18 +0000)
committerHarald Hoyer <harald@hoyer.xyz>
Thu, 20 Feb 2020 10:03:30 +0000 (11:03 +0100)
commit4237aeb040c276722b528001bdea31e6eb994d06
tree7b2b7032e38be0dc697f6d940daf37a224c6e347
parent16abea2592d7fee6166660098b647356d5a4cc14
Support the EFI Stub loader's splash image feature.

Checks if `uefi_splash_image` exists in `dracutsysroot` if not unset
`uefi_splash_image`. Alternate Value parameter expansion adds section-vma
for splash image to EFI stub loader when the path to image is valid and
not an empty file.

I did not test on other distributions, but on Arch Linux the `systemd`
package includes a splash image at the path
`/usr/share/systemd/bootctl/splash-arch.bmp`. Perhaps, if this is a
common practice, a default image could be gathered from that directory.

It is required that the image be in bitmap (`.bmp`) format according to
`splash.c`.

The code for `stub.c` and `splash.c` can be found at:
https://github.com/systemd/systemd/blob/master/src/boot/efi/stub.c
https://github.com/systemd/systemd/blob/master/src/boot/efi/splash.c
dracut.8.asc
dracut.conf.5.asc
dracut.sh