Commit graph

1980 commits

Author SHA1 Message Date
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
Ray Strode
70b2e61d62 Add hack to make maintenance mode probably work when
plymouth is running

It was showing up completely blank before because console
was still redirected
2008-06-30 17:55:15 -04:00
Ray Strode
f0412cefff Don't watch tty for input in two places 2008-06-30 17:52:44 -04:00
Ray Strode
dfbde72557 Stay on tty1 for now
Using tty7 is making X go to vt8 and putting us on
the wrong vt for runlevel 3. Eventually, we'll need
to make X start ont he same vt as plymouth, and go
back to vt1 if doing runlevel 3.
2008-06-30 15:59:49 -04:00
Ray Strode
10fb9add6e Update TODO
Remove:
  - Add limited text support
  - consider making details plugin have stdin hooked up
    to the pty instead of tty so input works
  - More on the last point, we need to have an escape
    hatch for fsck etc
2008-06-27 15:38:23 -04:00
Ray Strode
21b8637cac If stop_watching_signal is called on a signal that isn't being watched, ignore
Previously it would assert.  Really we should switch the api to have a signal_watch
object much like the fd_watch object we have for watch_fd.
2008-06-27 15:21:49 -04:00
Ray Strode
b95a46bf06 don't require window to be around at quit time
It's created on show-splash now, so it may not exist at quit time
2008-06-27 15:03:11 -04:00
Ray Strode
c46f2a10a7 Add --hide-splash option
We want to be able to hide the splash screen in the event
the user needs to interact with start up from the console.
2008-06-27 14:20:56 -04:00
Ray Strode
f1378a5218 Create window when showing splash screen instead of at startup
This will make it easier to add a --hide-splash option, which
will provide an escape hatch for repair mode etc
2008-06-27 11:14:57 -04:00