Skip to content

Command line ​

One binary has every role, picked by the name it runs under and its first argument:

Invoked asRole
plymouthdDaemon; detaches once ready
lys-splash --mode=... (--mode first)Daemon, in the foreground
lys-splash-shutdown-hook, with any argumentsShutdown hook: quit --retain-splash, returning once the group has faded out
plymouth, or lys-splash with anything elseClient

The units and initramfs scripts start the daemon; you normally do not.

Daemon ​

OptionDefaultEffect
--mode=MODEbootboot, shutdown, reboot, kexec or updates
--theme=FILE/etc/lys-splash/theme.yamlTheme file
--pid-file=FILEnoneWrites the pid here; removed on exit
--no-daemonoffAs plymouthd, stays in the foreground
--debugoffLogs at debug level
--attach-to-sessionAccepted and ignored; the splash always runs on the console's session

If a splash is already running, a new daemon reports ready and exits 0.

Client ​

Requests are served for root only; other users get exit status 1.

Options ​

Exactly one runs, instead of a command:

OptionEffect
--pingChecks whether a daemon is running
--waitWaits until the daemon quits; exits 0 at once if none runs
--quitTells the daemon to quit
--has-active-vtChecks whether the daemon has an active VT
--sysinitTells the daemon the root is writable
--show-splash, --hide-splashShows or hides the splash
--ask-for-passwordAsks for a password and prints it
--detailsReports a boot error
--newroot=DIRTells the daemon the new root is mounted at DIR
--update=STATUSSends a boot status
--ignore-keystroke=KEYSStops waiting for these keys

Commands ​

CommandEffect
show-splash, hide-splashShows or hides the splash
display-message --text=TEXT, message --text=TEXTShows a message
hide-message --text=TEXTHides that message if it is the one showing
change-mode --MODE--updates, --system-upgrade, --firmware-upgrade: update mode, the throbber until system-update --progress reports a percentage, then the bar. --boot-up, --shutdown, --reboot, --system-reset: throbber
system-update --progress=NUpdate progress bar at N percent
update --status=STATUSSends a boot status
update-root-fs --new-root-dir=DIRMoves the daemon into the root at DIR
update-root-fs --read-writeTells the daemon the root is writable
deactivateDrops DRM master, keeps the frame on screen (hand-over)
reactivateTakes DRM master back and shows the splash
quitQuits and restores the console with the boot messages
quit --retain-splashQuits and leaves the frame on screen
reloadRe-reads the theme file
pause-progress, unpause-progressPauses or resumes the animation
report-errorReports a boot error, which the daemon logs
ignore-keystroke --keys=KEYSStops waiting for these keys
ask-for-passwordAsks for a password and prints it
ask-questionAsks a question; the answer is echoed while typed
watch-keystroke --keys=KEYSWaits for one of these keys, or any key without --keys

Prompt options:

OptionOnEffect
--prompt=TEXTask-for-password, ask-questionPrompt text
--dont-pause-progressask-for-password, ask-questionKeeps the animation running while asking
--command=CMDask-for-password, ask-question, watch-keystrokeRuns CMD with the answer on standard input instead of printing it. CMD is split on whitespace, not by a shell
--number-of-tries=Nask-for-passwordWith --command, how often to ask; 0 (default) is no limit

ask-for-password --command first tries every password already typed, then asks until the command succeeds or the tries run out, and exits with the command's status. With no daemon running it runs the command with no standard input.

Exit status ​

StatusMeaning
0Done
1Refused request, unanswered prompt or bad usage
2The daemon hung up mid-request
3No daemon is running

Released under the MIT License.