Page MenuHomeFreeBSD

splash: add shutdown splash
AcceptedPublic

Authored by quentin.thebault_defenso.fr on Fri, Feb 6, 7:39 AM.
Tags
None
Referenced Files
F145746374: D55140.diff
Mon, Feb 23, 9:53 PM
Unknown Object (File)
Sat, Feb 21, 6:32 PM
Unknown Object (File)
Sat, Feb 21, 2:28 PM
Unknown Object (File)
Sat, Feb 21, 2:28 PM
Unknown Object (File)
Sat, Feb 21, 2:28 PM
Unknown Object (File)
Sat, Feb 21, 1:30 PM
Unknown Object (File)
Sat, Feb 21, 1:08 PM
Unknown Object (File)
Sat, Feb 21, 1:07 PM

Details

Reviewers
kevans
vexeduxr
manu
ziaee
Group Reviewers
manpages
Summary

This commit adds a shutdown splash to the existing kernel startup splash(4)
screen feature. It can be customized by providing a PNG image to the
shutdown_splash directive loader.conf(5).

Sponsored by: Defenso
MFC after: 2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 70463
Build 67346: arc lint + arc unit

Event Timeline

manu requested changes to this revision.Sat, Feb 7, 7:48 AM

Awesome.
But I don't think that we should add a new kernel option, just put everything depending on DEV_SPLASH.
Otherwise everything looks ok.

This revision now requires changes to proceed.Sat, Feb 7, 7:48 AM
stand/common/gfx_fb.c
3101

Did you build all the bootloaders? I think there is a copy of this in the stube version of this file.

tools/boot/universe.sh is a script to build them all fast.

Remove SHUTDOWN_SPLASH option and merge into DEV_SPLASH

quentin.thebault_defenso.fr added inline comments.
stand/common/gfx_fb.c
3101

Yes, done. Everything succeeds.

$ make universe
Building /usr/obj/usr/src/amd64.amd64/stand/universe
Building aarch64 WITHOUT_FORTH=yes ... Success
Building amd64 WITHOUT_FORTH=yes ... Success
Building i386 WITHOUT_FORTH=yes ... Success
Building aarch64 WITHOUT_LOADER_GELI=yes ... Success
Building amd64 WITHOUT_LOADER_GELI=yes ... Success
Building i386 WITHOUT_LOADER_GELI=yes ... Success
Building amd64  ... Success
Building armv7  ... Success
Building aarch64  ... Success
Building i386  ... Success
Building powerpc  ... Success
Building powerpc64  ... Success
Building powerpc64le  ... Success
Building riscv64  ... Success
Building aarch64 MK_LOADER_ZFS=no ... Success
Building amd64 MK_LOADER_ZFS=no ... Success
Building i386 MK_LOADER_ZFS=no ... Success
Building amd64 MK_LOADER_BIOS_TEXTONLY=no ... Success
Building i386 MK_LOADER_BIOS_TEXTONLY=no ... Success

Thanks, can you reword the commit message ? otherwise looks good to me.

splash is set to /boot/images/freebsd-logo-rev.png by default. Should the same be done for the shutdown splash?

sys/dev/vt/vt_core.c
1838

This can be fixed before landing, just noting it here.

splash is set to /boot/images/freebsd-logo-rev.png by default. Should the same be done for the shutdown splash?

This is already the case since we call into the existing vtterm_splash code where this case is handled.

ziaee added a reviewer: manpages.

The manual looks good to me!

splash is set to /boot/images/freebsd-logo-rev.png by default. Should the same be done for the shutdown splash?

This is already the case since we call into the existing vtterm_splash code where this case is handled.

I'm not talking about the default bitmap that's used if no splash is provided.
stand/defaults/loader.conf sets splash to /boot/images/freebsd-logo-rev.png, they're different.

  • Add default conf for shutdown splash image in stand/defaults/loader.conf
  • Fix style in vt_core.c
share/man/man4/splash.4
319–320

This is grafted to a sentence about adding PNG support, which seems unrelated (BMP or PCX would be supported as well, right?). So, instead, a separate sentence saying that splash was extended to display a picture at shutdown?

share/man/man4/splash.4
319–320

This is voluntary: the extension for shutdown is only provided for vt(4), which only supports PNG. BMP and PCX are only supported by syscons(4).

Looks okay to me.

Thanks!

Thanks, will commit this soon-ish unless someone beats me.

This revision is now accepted and ready to land.Fri, Feb 20, 11:29 AM