Commit graph

1688 commits

Author SHA1 Message Date
Colin Guthrie
032a30c489 main: Also show splash for 'splash=silent' arguments (which is what we use in Mageia) 2012-03-21 10:36:30 -04:00
Colin Guthrie
b8f2e2b11f main: Fix parsing of plymouth.debug=stream: argument.
It did not terminate at space so the log file to use was not
properly defined and any additional kernel command line args were
added to the end of the file name.
2012-03-21 10:36:12 -04:00
Per Øyvind Karlsen
3f0cf34885 ulibc: Change the link order + add -ldl
ulibc linking is a bit more particular than regular glibc
2012-03-21 10:35:37 -04:00
Per Øyvind Karlsen
153b77e7e3 ulibc: Make the /usr/lib substitution less greedy. 2012-03-21 10:35:30 -04:00
Per Øyvind Karlsen
3aaee87bf9 ulibc: Add header needed when compiling against ulibc 2012-03-21 10:35:05 -04:00
Daniel Drake
b840b6f73c frame-buffer: use /dev/fb0 as default device
The /dev/fb symlink doesn't get created with any recent udev version.
dracut puts it in place "by hand" before starting plymouthd, which is
why things aren't broken in configurations that use dracut's plymouth
module.

Update the default device path so that it works out-of-the-box in
other setups too.
2012-03-17 02:39:03 -04:00
Daniel Drake
6cd7fd00d1 ply-splash-graphics: ensure link in config file
While building a theme externally I found that the link to
libply-splash-graphics was missing, due to an omission in the config
file.
2012-03-17 02:38:00 -04:00
Ray Strode
b8de41ef07 plymouth-populate-initrd: Check for new path to dracut-functions 2012-02-23 10:04:37 -05:00
Ray Strode
488a5d6578 Revert "Hang around until killed by init at shutdown"
This reverts commit 841068ba12.

That commit made plymouthd hang around until the last round
of slayings by init to keep the splash screen up as long as
possible.

That adds 5 seconds to shut down in some cases, though, so
is wrong.  Instead we need a solution that keeps the splash
around after plymouth exits.

See http://bugzilla.redhat.com/744932
2012-01-19 12:32:11 -05:00
Ray Strode
e810532e5d main: read consoles from /sys/class/tty/console/active
We currently read the list of available consoles from the
kernel command line.

This isn't the most reliable way to do things.

This commit changes the code to read

/sys/class/tty/console/active

instead.
2011-12-02 17:18:41 -05:00
Ray Strode
553c3e8643 main: close all terminals, not just local console terminal
It's important we close all terminals in the shutdown path,
so they all get unlocked and returned to cooked mode.

Previously, we would just close the local console terminal,
which meant other terminals would end up left in a broken state.
2011-10-13 11:55:43 -04:00
Ray Strode
b636493e08 main: rename state->terminal to state->local_console_terminal
state->terminal is used for VT handling code.  To make it clear
what its role is, rename it to state->local_console_terminal.
2011-10-13 11:55:24 -04:00
Ray Strode
95c3522e92 main: don't overwrite state->terminal if there are multiple consoles
We call the add_display_and_keyboard_for_terminal function for
every console passed into the kernel command line and once for
/dev/tty1 if no console line is passed in. This function
repeatedly, reinitializes state->terminal with whatever
terminal is passed in each time its called.

This commit changes add_display_and_keyboard_for_terminal to not
touch state->terminal and instead makes the callers do it
(if appropriate)
2011-10-13 11:52:04 -04:00
Ray Strode
3a627b7878 boot-splash: deduce terminal from text display
Right now we pass a terminal to the constructor of the boot splash
object.  This terminal is used for going to KD_TEXT mode when
ctrl-T is tapped or when hiding the splash.

We only need to do this, though, when:

1) we're running on a local vt
2) we're showing graphics

the boot-splash code has all the knowledge it needs to figure these
two things out on its own, and furtermore it already can figure out
which terminal is the relevant one without being told at construct
time.

This commit adds those smarts to the boot splash code.
2011-10-13 11:49:19 -04:00
Ray Strode
2d1e0c8938 main: fix kernel command line parsing
check_for_consoles has another bug (surprised?) where it would
jump too many characters forward if the command line has
console=tty0 in it, since tty0 is transparently changed to /dev/tty1.
2011-10-12 15:50:56 -04:00
James Hunt
1946bbc0de main: plug fd leak
This plugs an fd leak in an error path
2011-10-11 22:11:10 -04:00
Ray Strode
bd7a6bc929 utils: drop ply_list_directory
It's unused code
2011-10-11 22:09:37 -04:00
James Hunt
4cb4edd9f8 utils: plug dir fd leak
This commit calls closedir() in an error path.
2011-10-11 22:08:48 -04:00
James Hunt
128e14d342 logger: plug fd leak
This plugs an fd leak in an error path.
2011-10-11 22:05:54 -04:00
James Hunt
bcb27226b7 text-progress-bar: plug fd leak
This plugs a fd leak in an error path
2011-10-11 22:03:08 -04:00
James Hunt
9fffcda4c5 client: fix fd leak
This plugs an fd leak in an error path
2011-10-11 22:01:07 -04:00
Ray Strode
7d198ba28a README: resync from wiki
walters pointed out the README had some stale information in
it.  I've copy and pasted the wiki text in, now, so there
will be hopefully a small quantity of said stale information.
2011-10-10 10:54:00 -04:00
Colin Walters
76142a6f6e autogen.sh: rework to be more buildsystem friendly
One of the goals laid out in
http://people.gnome.org/~walters/docs/build-api.txt
is to get projects to have autogen.sh scripts that
don't invoke configure after generating it.

This commit does that along with some other small
modifications designed to help be more confromant
with the Build API referenced in the above url.

https://bugs.freedesktop.org/show_bug.cgi?id=41629
2011-10-10 09:16:10 -04:00
James Hunt
7e934255c5 event-loop: use static buffer instead of stack allocation buffer
alloca() isn't a good idea to use, in general, because it provides
undefined behavior when it fails.

This commit changes the epoll event buffer from being stack allocated
to static to avoid any potentially problems resulting from stack
space exhaustion.

https://bugs.freedesktop.org/show_bug.cgi?id=41562
2011-10-07 14:26:09 -04:00
Ville Skyttä
788db29334 README: spelling fix.
This changes the mispelled word analagous to the
word analogous.

https://bugs.freedesktop.org/show_bug.cgi?id=41196
2011-09-26 09:56:30 -04:00
Ray Strode
b8f8fdbb88 throbgress: add plugin decelartion
This should fix the build.

https://bugs.freedesktop.org/show_bug.cgi?id=40240
2011-08-19 17:32:36 -04:00
Leho Kraav
5439ef520d throbgress: make colors configurable
This commit makes the background start and
background end colors configurable in throbgress.
2011-08-18 11:23:44 -04:00
Ray Strode
b7701d690a Revert "Add --nowait option."
This reverts commit c926bccd83.

It was an in-progress patch that I carelessly and erroneously
pushed.
2011-08-03 14:00:25 -04:00
Ray Strode
973dd358b9 x11: translate enter to new line
commit 4081bd29fb changed
our keyboard handling code to treat newline instead of
carriage return as the enter key.

That commit fixed up the tty settings to work under these
new assumptions.  It failed to update the X11 code, though.

This commit fixes the X11 renderer plugin so it works in
the same way.
2011-07-29 15:16:50 -04:00
cee1
c926bccd83 Add --nowait option.
With --nowait option, plymouth will not wait for reply from plymouthd.
2011-07-15 10:14:16 -04:00
cee1
cff3164a23 progress-animation: allow 0 frame animations
Currently ply-progress-animation crashes if you try to pass it
an animation with 0 available frames.

This commit makes it silently succeed.
2011-06-28 23:59:26 -04:00
cee1
71f6221f8d two-step plugin: free plugin->animation_dir when destroy 2011-06-15 10:27:06 -04:00
Ray Strode
749718356a key-file: minor code shuffle
Move things around to avoid false positives in coverity.
2011-06-14 10:04:25 -04:00
Canek Peláez Valdés
bdd31fb29e main: fix console=/dev/tty special case
commit 1d09ad7d51 contained a mistake
where it checked for "tty" twice instead of "tty" once and "/dev/tty"
once.

This commit fixes that error.
2011-05-31 11:39:43 -04:00
Ray Strode
1d09ad7d51 main: special case console=tty
Some people use console=tty in the same way they'd expect
console=tty0 to work.

This commit makes them behave the same way.
2011-05-25 14:28:42 -04:00
Ray Strode
113b2e2772 keyboard: handle kernel terminal EIO better
In commit 89096d735f we added
reopen retries when the kernel returns EIO to ply-terminal.c.

This is because when the kernel is closing a tty down, that
tty is unavailable to userspace to reopen.

Unfortunately, that commit neglected to inform the ply-keyboard
part of the code when the terminal retry was successful.  The
upshot of this, is that if plymouthd needs to retry opening the
tty, then the splash screens lose control over the keyboard.

This commit changes how input notification is sent to the keyboard
handling code, so the tty disconnects are transparent.
2011-05-11 10:28:47 -04:00
Ray Strode
1c16b695d5 main: allow log output to be redirected
Sometimes putting debug output on the screen has strange side
effects.  This commit adds a new kernel command line option,
e.g:

plymouth.debug=stream:/dev/null

that moves the output "out of the way"
2011-05-10 16:27:57 -04:00
cee1
f87d295aa8 main: write pid file and daemonize last
These actions serve to notify plymouthd's readiness.
We should make sure they are run after plymouthd is actually
done starting up.
2011-04-21 15:21:19 -04:00
cee1
b1e9022f11 main: write pid file even when not daemonizing
This commit moves the pid file writing code to main
from ply_create_daemon, so that it gets run even when we
plymouthd isn't daemonized.

This is more symmetrical, anyway, since unlinking of the pid
file is handled in main.
2011-04-21 15:20:47 -04:00
cee1
aefa84dc9e text-progress-bar: Add support for /etc/os-release
Systemd uses '/etc/os-release' as release file, see
http://0pointer.de/public/systemd-man/os-release.html
2011-04-21 13:26:14 -04:00
Ray Strode
3f14f2700e main: force frame-buffer plugin at shutdown
This way we hopefully won't get kicked out of KD_GRAPHICS
mode when we're SIGKILLed causing the splash to disappear
prematurely.
2011-03-30 23:22:59 -04:00
Ray Strode
0886182618 main: fix ply_mode_t/ply_boot_splash_mode_t confusion
They're very similar enums and I was using the wrong one,
which caused a harmless compiler warning.
2011-03-30 23:21:00 -04:00
Ray Strode
f16ba574a2 renderer: provide way to override renderer plugin
This will allow us to force e.g. frame-buffer even
if drm would work.
2011-03-30 23:14:05 -04:00
Ray Strode
7b1a16579b main: create runtime directory if it doesn't exist already
This makes sure there is a convenient place to put pid files.
2011-03-30 22:51:27 -04:00
Ray Strode
d1beb39095 gdm: don't do legacy gdm transition at shutdown 2011-03-29 13:06:44 -04:00
Ray Strode
6e748588cd systemd: change instrumentation points for systemd
We don't want to enable console verbosity until the splash is up,
and we want to disable it as soon as we aren't logging the console
anymore.
2011-03-29 02:18:36 -04:00
Ray Strode
6b4644cb6b configure: s/text/test/
Just a typo from the previous commit
2011-03-29 01:04:31 -04:00
Ray Strode
537c16422c systemd: toggle systemd messages when toggling console redirection
Normally systemd is very mute about messages.  It's important,
though for it to be chatty when plymouth is running so we can
show verbose messages to the user when they hit escape.

This commit adds a new --enable-systemd-integration configure
flag which explicitly tells systemd when to print messages to
the console.

This may get dropped in the future in lieu of init script
changes doing this instead of plymouth directly.
2011-03-28 22:45:48 -04:00
Ray Strode
7f3871b0f5 main: consolidate ply_terminal_session_detach calls
It's called in several places through the code. This commit
moves it into a function and just calls that function instead.
2011-03-28 22:44:31 -04:00
Ray Strode
a116eafc57 client: small leak fix 2011-03-26 01:02:49 -04:00