Commit graph

988 commits

Author SHA1 Message Date
Ray Strode
ae67f008b6 Detect serial console and redirect messages if present
Previously, we were hard coding tty1.  Now we send messages
to whatever is specified as the console, if a console is
specified.
2008-08-19 14:44:13 -04:00
Ray Strode
cb111dab45 Allow details plugin to work without window
If it's NULL send a NOANSWER reply to any
questions asked by the client and make the
client handle NOANSWER by asking the user
itself.
2008-08-19 14:44:13 -04:00
Ray Strode
31f121080d Add new api to say "I don't know the answer to your question"
This will be important when the client asks the daemon a question
it can't ask the user.  In particular, "What's the password?" when
there isn't any splash that accepts input.
2008-08-19 14:44:12 -04:00
Peter Jones
7cac3b1b6f Don't go back into the event loop after we get a SIGABRT or SIGSEGV;
that causes a busy loop and is bad.
2008-08-13 13:48:28 -04:00
Ray Strode
2204e8f715 Ship a gdm autostart file with viewer
This way when there is an error the user can see it
at the login screen.
2008-08-12 23:56:00 -04:00
Ray Strode
a42c923c29 Make log viewer check spool directory for errors instead
of parsing boot log

Parsing the boot log is a bit messy since it's translated.
2008-08-12 17:49:04 -04:00
Ray Strode
7cd629da64 Fix up top blurb in viewer code
It still had remanents from being out of tree.
2008-08-12 17:18:29 -04:00
Ray Strode
134da00043 if an error happens during boot up spool it for the viewer
We store a link to the boot log in /var/spool/plymouth so that
the viewer can detect if boot up failed.  It will do this by
checking if /var/log/boot.log and /var/spool/plymouth/boot.log
are the same file
2008-08-12 17:16:43 -04:00
Ray Strode
9abbd88835 Recreate boot log at each boot instead of appending
It's confusing to see multiple boots in the file
2008-08-12 17:07:17 -04:00
Ray Strode
fc5cd88767 Make boot.log world readable by default
Before we were only making it readable by root, but
that doesn't make sense. It's not secret information
or anything.
2008-08-12 13:35:10 -04:00
Ray Strode
8ecb839694 Add initial boot log viewer from Matthias
Since plymouth conceals boot messages from the user during boot
up, it should provide a way for users to get at the boot
messages after login.  In particular, if there was a problem
during boot up, the user should get notified at the login
screen.

This commit adds the first cut at a log viewer without
any of the login screen integration bits.
2008-08-12 13:18:51 -04:00
Ray Strode
77247462fa Restore color palette when stopping text plugin
If we don't restore the color palette then the
details view / post boot up messages get drawn
with the wrong colors.
2008-08-12 11:08:08 -04:00
Ray Strode
1fdc657b91 fix typo in previous commit
It had things of the form  if (supports_color); { ... }
2008-08-12 11:02:41 -04:00
Ray Strode
8c80cf7039 Don't make failure to fiddle with the console color map fatal
This breaks serial console.
2008-08-08 13:44:59 -04:00
Ray Strode
50c9bfcbee Don't call popen since it doesn't work in the initrd
popen relies on /bin/sh which may not be available in
the initrd.  This commit changes ask-for-password to
call fork() directly.  The code could use some clean ups
and a better command spliting function than split_string.
2008-08-07 16:33:28 -04:00
Ray Strode
ebd380862c add \r to log messages to prevent stair stepping 2008-08-07 16:32:47 -04:00
Ray Strode
1e261cca34 remove set -e from plymouth-populate-initrd
It screws up since some of the mkinitrd functions return non-zero
2008-08-06 22:37:37 -04:00
Ray Strode
eb050bd564 Add some precondition checks to an api entry point
ply_event_loop_stop_watching_fd wasn't ensuring that
the caller passes non-NULL arguments.
2008-08-06 22:24:08 -04:00
Ray Strode
53688a686f Don't try to remove watches that have already been removed
This prevents some assertions from getting thrown by the
client under some circumstances
2008-08-06 22:22:55 -04:00
Ray Strode
6a96ca6ef4 Remove all entry bullets if the user presses enter
Previously if the user mistyped their password they
would get shown and entry with their old bullets still
there.
2008-08-05 17:28:31 -04:00
Ray Strode
2e3974e86a Detect if the entry is hidden and don't draw it in that case 2008-08-05 17:28:26 -04:00
Ray Strode
334300f89d Don't enforce bizarre assertion that lists need unique user data 2008-08-05 17:28:22 -04:00
Ray Strode
942380da47 Add --debug command to client 2008-08-05 17:28:14 -04:00
Ray Strode
396cae8e1b Don't die from SIGPIPE on daemon disconnect 2008-08-05 17:27:45 -04:00
Casey Dahlin
89a852cefb Increase logger max injection size 2008-08-05 16:31:47 -04:00
Casey Dahlin
e4191b5d38 Don't default to last known option when setting flags 2008-08-05 16:31:09 -04:00
Casey Dahlin
3baeb92e99 Add --wait option to client to block until daemon quits 2008-08-05 16:26:27 -04:00
Ray Strode
a05890e55c Handle flags and booleans better in command parser
We were occasionally misattributing one command for another
2008-08-05 15:19:10 -04:00
Ray Strode
e587fa6a45 Update readme to reflect new boot log path
It was /var/log/bootmessages.log, now it is /var/log/boot.log
2008-08-01 13:51:16 -04:00
Ray Strode
6a78783e7b Port fade-in over to use new entry in libplybootsplash 2008-08-01 10:37:50 -04:00
Ray Strode
354e04a7d9 Port spinfinity over to use new entry in libplybootsplash 2008-08-01 10:37:49 -04:00
Ray Strode
af73ed3b8b Add an entry control
Right now we have some cut and paste code between the
splash plugins for a password entry. This new file will
move some of the repeated code into libplybootsplash.
2008-08-01 10:37:49 -04:00
Peter Jones
a17deea7ca Don't do library installation twice. Also fix some typos. 2008-07-30 10:31:40 -04:00
Peter Jones
c01d237689 Make plymouth-populate-initrd use utility functions from mkinitrd 2008-07-29 15:27:20 -04:00
Ray Strode
b7dd9dcb77 Add ctrl-l "redraw" hot key 2008-07-29 15:15:52 -04:00
Ray Strode
a5065a3495 Make fade-in plugin provide erase/draw handlers 2008-07-29 15:15:51 -04:00
Ray Strode
0470ae47ed Make spinfinity plugin provide erase/draw handlers 2008-07-29 15:15:51 -04:00
Ray Strode
4848ce9c05 Move text plugin over to new draw/erase handlers 2008-07-29 15:15:51 -04:00
Ray Strode
d4d3ca4c51 Add new hooks for clearing and drawing parts of the screen
We now have a few controls in libplybootsplash that don't
don't the specific details of the loaded splash plugins
background.  These hooks will make it possible for the
controls to clear the screen prior to doing alpha composition.
2008-07-29 15:15:51 -04:00
Ray Strode
186fb1f6ed Show detailed plugin if ask-for-password is called when no splash visible 2008-07-11 08:57:46 -04:00
Ray Strode
78bb3d17cd Rearrange functions to prevent forward declaration
We're going to be calling show_detailed_splash before
implicitly in cases when there is no splash, so we
need to make sure it's high enough up in the file
2008-07-11 08:48:01 -04:00
Ray Strode
254292def2 Rearrange functions to drop forward declaration 2008-07-11 08:46:15 -04:00
Ray Strode
a68a8b736a Use details plugin instead of bailing if no rhgb on kernel cmdline
We still want things like ask-for-password and logging to work.
2008-07-11 08:43:46 -04:00
Ray Strode
d8086a93a3 Compute libdir using yet a different heuristic
The previous one falls over for ia64
2008-07-09 21:31:20 -04:00
Ray Strode
d10b3eb6da Add debugging feature to restore text palette 2008-07-09 17:36:44 -04:00
Ray Strode
86c642baca Bump version to 0.5.0 2008-07-01 15:18:17 -04:00
Ray Strode
2290b78360 Add new subcommand "ask-for-password"
This command obsoletes --ask-for-password and supports an
optional --command for specifying what command to feed the
password to.  If the command fails, then the client will
ask the daemon to ask for the password again.
2008-07-01 14:57:17 -04:00
Ray Strode
b85a8051a3 Clear screen to black before asking for password 2008-07-01 14:55:11 -04:00
Ray Strode
09378c11a5 Drop print_usage function
It was hard coded, and we generate help dynamically now.
2008-07-01 11:20:44 -04:00
Ray Strode
82922539c6 Add state structure to client to consolidate the various state
This will be important when switching to subcommands, since we'll
need to be able to access the command parser, boot client, and
event loop.
2008-07-01 11:15:46 -04:00