William Jon McCann
f555438a24
add a mode commandline option
...
Initially supports modes: boot, shutdown. This allows the
progress cache to be loaded from the appropriate file.
16 years ago
William Jon McCann
a3fd5f2e21
add command line parsing to daemon
...
If for no other reason than to handle --help.
16 years ago
William Jon McCann
b117701702
allow the progress cache file to be configurable
...
This will enable using separate cache files for different plymouth modes.
16 years ago
Charlie Brej
e2404b991a
Make Ctrl+C and Ctrl+D cause the password/question entry to quit
...
When asking for a password or a question, if the user presses Ctrl+C or Ctrl+D
the backend will reply a NULL. This is interprited as a "Stop asking me". The
client will not repeat the request (even if number of retries hasn't been
reached) and quit with an error exit_status.
16 years ago
Charlie Brej
9d0670ebd2
Add progress-pause/unpause commands to halt the progress bar
...
Progress bar expansion was previously halted on password entry. Now the
progress can be halted whenever the system wishes. This can be useful when the
system notices there is a big task which is normally not present during normal
boots e.g. fsck.
16 years ago
Charlie Brej
b65d7dcf3e
Rework of the input methods
...
Previously the splash plugins would deal with password entry, which would mean
that code was repeated and upon splash unload the password entry would be lost.
Now the keyboard strokes are processed with outside the splash, and the plugins
only deal with showing an appropriate user interface. As well as password
entry, the system can ask questions with non hidden text entry and sensing of
keystrokes.
16 years ago
Ray Strode
5d84dba994
Only tell gdm to keep vt if told to retain splash
...
See http://bugzilla.redhat.com/471785
16 years ago
Ray Strode
ae66146be7
drop unused variable
16 years ago
Ray Strode
784a365711
Don't dump details on hide if already hidden
16 years ago
Ray Strode
6f5d90014f
set redirected, attached to false after tty detach
...
This makes --show-splash after --hide-splash not look
confused.
16 years ago
Ray Strode
3022a696fc
Hide splash if init=/bin/bash is on command line
...
Previously, we were just showing detailed splash,
but that causes keystrokes to get eaten.
16 years ago
Ray Strode
057bb4a5bf
Add some forward declarations
...
Fixes build warnings.
16 years ago
Ray Strode
283d8d0977
Rework how terminals are disconnected from tty
...
It was causing some problems on hide-splash before
that should be better now.
16 years ago
Ray Strode
e66b42a4c4
Don't abort if no splash when root is mounted
16 years ago
Ray Strode
b67ba5977e
Don't log debug msgs to file with plymouth:debug
...
It creates a feedback loop. We'll need to cut
that first before we can log to boot.log.
What'd I'd like to do is have several log targets
plymouth:log=boot.log or plymouth:log=/dev/ttyS0,
or plymouth:log=/dev/tty0
16 years ago
Ray Strode
85f15f2f5e
Add more debugging statements
...
Will make it easier to catch problems.
16 years ago
Ray Strode
a739a8ecaf
Track "attached" versus "redirected" separately
...
We only want to try to attach the terminal session
to a terminal if it's not already attached. It may
be legitimately unredirected if plymouth:nolog is
passed.
16 years ago
Ray Strode
90abd28a02
Don't make hang ups on terminal fd fatal
...
We get them when redirecting the console, etc,
so let's just log them for now.
16 years ago
Charles Brej
a5bf3d00c5
Revert "Merge branch 'master' of ssh://git.freedesktop.org/git/plymouth"
...
This reverts commit 65aae81e94
.
16 years ago
Ray Strode
faeabda5f4
unredirect console messages terminal-session
...
Previously, we did it manually using the ioctl
straight from main.c. Now, there's a
ply_terminal_session_detach call that does it
for us. This allows us to detach from the terminal
during --hide-splash, and reattach during --show-splash
16 years ago
Ray Strode
dea547274b
ignore hangups if terminal is not redirected
16 years ago
Ray Strode
4fc5d6b5bd
Force windows to get closed on quit
...
If plymouth was called with --retain-splash, the
window wasn't getting closed which caused the tty
to not get reset correctly.
16 years ago
Ray Strode
aec6642fd8
If started with debug, log it to boot.log
16 years ago
Ray Strode
99f9d7fa69
ignore sigpipe signal
16 years ago
Charles Brej
335764227a
Add recording and recalling of status event times to estimate progress
16 years ago
Ray Strode
ea15d24f3e
At exit do on_hide_splash not ply_boot_splash_hide
...
Calling just ply_boot_splash_hide meant that the
terminal wasn't getting reset properly causing
tty1 to misbehave.
16 years ago
Ray Strode
de268c7531
Add "closing windows" debug message
16 years ago
Charles Brej
2d7f68e467
Move the progress data from boot_splash up a level.
...
This allows the progress to be retained between calls to splash plugins.
16 years ago
Jeremy Katz
00edb5e736
Don't free windows on --hide-splash
...
We still need them to be around for subsequent
--show-splash calls.
16 years ago
Ray Strode
a1a8434478
Add some logging messages to main.c
16 years ago
Ray Strode
1156315bfb
If console=tty0 is asked for use tty1
...
tty0 means "use current tty", which is tty1
for us.
16 years ago
Ray Strode
9b9cc47c10
Only set escape handler on window if it's open
16 years ago
Ray Strode
6b9011d164
New nolog option to disable console redirection
...
It seems like there may be cases where it's better
to not do the whole TIOCCONS song and dance. This
provides an escape hatch.
16 years ago
Ray Strode
66d23c49ce
Move details plugin to support n windows
16 years ago
Ray Strode
dfc91615ef
Create a separate window for each console
...
Since we may end up with multiple outputs
(if using serial console), we need to have
multiple windows one for each console line.
16 years ago
Ray Strode
fbaa2f9805
change ply_window_new to take a device instead of vt number
...
We're going to wrap windows around serial devices, too.
16 years ago
Ray Strode
dd710f097c
drop take_console/give_console functions
...
We aren't really using them right now.
16 years ago
Ray Strode
b0612fb47e
Fix build when compiled --without-gdm-transition
...
Forgot a missing #ifdef
16 years ago
Ray Strode
2a37ce94fc
Tell GDM to start on vt1 for every plugin
16 years ago
Ray Strode
47cc4b3aa8
Replace ply-answer with a ply-trigger
...
They were basically the same thing, so no reason
to have duplicated code.
16 years ago
Ray Strode
2028e64e8b
Only hide boot splash on quit if told to do so
...
Extend the daemon-client protocol to include a
"retain-splash" flag to the quit request. If
it's set then we don't hide the boot splash.
16 years ago
Ray Strode
5c81e95480
Unload splash plugin instead of hiding on quit
...
It may decide to keep the splash up after it
exits.
16 years ago
Ray Strode
ebbde8f409
Don't force text mode on quit
...
Leave it up to the splash plugin to decide
16 years ago
Charlie Brej
527301416a
Plug various memory leaks
16 years ago
Ray Strode
dee4a85787
Require plymouthd to be run as root
16 years ago
Ray Strode
de640c616f
Fix typo
...
forgot a state->
16 years ago
Ray Strode
a284953e42
Actually fix serial console loop
16 years ago
Ray Strode
ca07ac0c34
Fix console iterating patch from two commits ago
...
It was an infinite loop
16 years ago
Ray Strode
d12ae10a70
Strip out , when parsing console
...
Options can be passed to the console, we should
ignore them when opening the console.
16 years ago
Ray Strode
a07d23afd4
Use the last console instead of first console
...
If the kernel command line specifies more than
one console, then the last console is /dev/console
16 years ago