]> git.ipfire.org Git - thirdparty/plymouth.git/log
thirdparty/plymouth.git
11 years agohashtable: add get_size method
Ray Strode [Sun, 1 Dec 2013 23:58:02 +0000 (18:58 -0500)] 
hashtable: add get_size method

Right now there's no easy way to know if a hash table is empty,
which I'm going to need in a future commit.

This commit adds a get_size method to return the number of items in
the hash table.

11 years agoterminal: add new get_name() method
Ray Strode [Sun, 1 Dec 2013 01:34:24 +0000 (20:34 -0500)] 
terminal: add new get_name() method

The name is passed in at construct time, but it gets canonicalized.

This commit adds api to get the final name. The api is also useful,
since it prevents callers that need the mapping from having to maintain
it separately, which will be good for a future clean up.

11 years agorenderer: use enum for selecting renderer type, not plugin path
Ray Strode [Sat, 30 Nov 2013 04:02:34 +0000 (23:02 -0500)] 
renderer: use enum for selecting renderer type, not plugin path

ply_renderer_new takes a path to a renderer plugin, or NULL to
try each one in turn.

It's cleaner to abstract the path behind an enum type, so this
commit makes that change.

Now it will be possible to instantiate specific renderers without
hardcoding the paths to plugins in more than one place.

11 years agomain: drop check_for_consoles call at startup
Ray Strode [Wed, 27 Nov 2013 05:26:45 +0000 (00:26 -0500)] 
main: drop check_for_consoles call at startup

It was only used to make kernel_console_tty get set,
which we no longer have.

11 years agomain: drop kernel_console_tty
Ray Strode [Wed, 27 Nov 2013 05:24:54 +0000 (00:24 -0500)] 
main: drop kernel_console_tty

We aren't actually really using it anymore.  It gets checked
in on place in the debugging code, but only before it's set.

This commit drops it.

11 years agomain: drop parameters for check_for_consoles function
Ray Strode [Wed, 27 Nov 2013 05:07:54 +0000 (00:07 -0500)] 
main: drop parameters for check_for_consoles function

both the default tty and whether or not displays should be added
are available in the global state object (as state->default_tty
and state->is_shown respectively), so they don't need to be parameters.

The latter one was a boolean, so having it as a parameter was confusing
at the call sites.

This commit drops the parameters.

11 years agodrm: simplify device open
Daniel Drake [Mon, 25 Nov 2013 17:38:37 +0000 (11:38 -0600)] 
drm: simplify device open

libdrm's open functions are just wrappers around open(), and our
detection of which parameter to pass to drmOpen() is not 100%
reliable.

Simplify the code and just call open() directly.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=71590

11 years agosystemd-units: don't timeout the plymouth waiting
Ray Strode [Thu, 31 Oct 2013 13:46:56 +0000 (09:46 -0400)] 
systemd-units: don't timeout the plymouth waiting

A timeout causes things to fail, so we shouldn't timeout.

11 years agotwo-step: fix unlock screen
Ray Strode [Fri, 8 Nov 2013 13:31:32 +0000 (08:31 -0500)] 
two-step: fix unlock screen

The previous commit introduced a bug where the unlock screen won't
get shown if it's requested within the first 5 seconds of startup.

This commit fixes that by forcing a redraw if the state switches from
NORMAL.

12 years agotwo-step: introduce delayed startup
Ray Strode [Fri, 25 Oct 2013 20:24:47 +0000 (16:24 -0400)] 
two-step: introduce delayed startup

Many machines these days can boot in 5 seconds or less.
In those cases, there's little point in showing a boot splash.

This commit introduces a StartupDelay option to the two step
plugin to prevent it from displaying anything for a few seconds.

12 years agotwo-step: add support for watermark
Ray Strode [Thu, 24 Oct 2013 13:33:17 +0000 (09:33 -0400)] 
two-step: add support for watermark

The watermark is overlaid on top of the background but below all the
other content.

12 years agotwo-step: delete extraneous log spew
Ray Strode [Thu, 24 Oct 2013 00:19:35 +0000 (20:19 -0400)] 
two-step: delete extraneous log spew

12 years agotwo-step: add support for tiled background image
Ray Strode [Tue, 22 Oct 2013 23:24:14 +0000 (19:24 -0400)] 
two-step: add support for tiled background image

If there's a file named background-tile.png in the theme
then it will get used as the background behind the other
content in place of the background gradient.

12 years agoply-image: add tiling support
Ray Strode [Tue, 22 Oct 2013 22:36:15 +0000 (18:36 -0400)] 
ply-image: add tiling support

This follow up commit adds tiling support to images, so
that splash screens can have been background patterns instead
of just background colors.

12 years agopixel-buffer: add tiling function
Ray Strode [Tue, 22 Oct 2013 22:34:46 +0000 (18:34 -0400)] 
pixel-buffer: add tiling function

It can be useful to tile a group of pixels across the screen
(for e.g. backgrounds).

This commit adds API to pixel buffer to do that tiling.

A follow up commit will add support into ply-image so images can
be loaded from disk and then tiled on screen.

12 years agoconfigure: add back --enable-tracing
Ray Strode [Wed, 23 Oct 2013 19:54:24 +0000 (15:54 -0400)] 
configure: add back --enable-tracing

It was accidentally removed, when dropping device specific drm support.

12 years agodocs: add docbook based man pages
Matthias Clasen [Mon, 21 Oct 2013 21:53:33 +0000 (17:53 -0400)] 
docs: add docbook based man pages

This commit adds man pages for the plymouthd and plymouth client
commands.

12 years agoscripts: make plymouth-update-initrd somewhat more useful
Ray Strode [Tue, 15 Oct 2013 13:52:46 +0000 (09:52 -0400)] 
scripts: make plymouth-update-initrd somewhat more useful

plymouth-update-initrd is a script that should probably be eventually
dropped.  It was originally created to unpack and initrd and graft
plymouth in.  Later, it just became a thin wrapper around mkinitrd.

These days, very few (any?) distros use mkinitrd.  Change it to call
dracut instead.

Relevant irc log:

<newfo> this is SO WRONG:
http://cgit.freedesktop.org/plymouth/tree/scripts/plymouth-update-initrd
<newfo> it won't work on any distro
<newfo> would you mind updating that please?
<newfo> replace the mkinitrd line in
/usr/libexec/plymouth/plymouth-update-initrd to  dracut -f
/boot/initramfs-$(uname -r).img $(uname -r)
<-- newfo has quit (Client Quit)

12 years agomain: force tty to /dev/tty if $DISPLAY is set
Ray Strode [Mon, 23 Sep 2013 19:21:30 +0000 (15:21 -0400)] 
main: force tty to /dev/tty if $DISPLAY is set

the X11 renderer is useful for testing themes without rebooting,
but it really only functions if the user puts --tty=/dev/tty or
similar.  Furthermore, if a user neglects to do that really bad
stuff happens since plymouth will try to take over VT1.

This commit makes --tty=/dev/tty implied if $DISPLAY is set.

12 years agoMake contact the default text plugin
William Jon McCann [Mon, 1 Oct 2012 20:16:03 +0000 (16:16 -0400)] 
Make contact the default text plugin

And rename the old text plugin "tribar"

https://bugs.freedesktop.org/show_bug.cgi?id=55286

12 years agoAdd contact plugin
William Jon McCann [Mon, 24 Sep 2012 14:16:31 +0000 (10:16 -0400)] 
Add contact plugin

https://bugs.freedesktop.org/show_bug.cgi?id=55286

12 years agoconfigure: don't bother with rhgb-compat-link anymore
Ray Strode [Tue, 3 Sep 2013 21:42:46 +0000 (17:42 -0400)] 
configure: don't bother with rhgb-compat-link anymore

it's been N years since rhgb, let's toggle the default to no.

12 years agodrm: drop driver specific renderers
Ikey Doherty [Tue, 3 Sep 2013 21:14:48 +0000 (22:14 +0100)] 
drm: drop driver specific renderers

All the major modesetting drivers support the generic interface now, so
there's no reason to have driver specific code.

This commit drops all that extra code and hard codes the generic interface

12 years agosystemd units: halt/reboot/kexec/power systemd unit have changed names
Frederic Crozat [Mon, 29 Jul 2013 15:41:30 +0000 (17:41 +0200)] 
systemd units: halt/reboot/kexec/power systemd unit have changed names

Ensure we use the new 'systemd-' prefixed names now.

12 years agosystemd units: Replace prefdm.service with display-manager.service
Colin Walters [Thu, 18 Jul 2013 22:38:24 +0000 (18:38 -0400)] 
systemd units: Replace prefdm.service with display-manager.service

The former is dead, the latter is the new name.  See:

http://cgit.freedesktop.org/systemd/systemd/commit/?id=b2c9cbafb8b1a2742978e1faf37fbb3cf4fb5d44
https://fedoraproject.org/wiki/Features/DisplayManagerRework

12 years agokey-file: ignore leading spaces and blank lines
Ray Strode [Wed, 17 Jul 2013 19:07:43 +0000 (15:07 -0400)] 
key-file: ignore leading spaces and blank lines

leading spaces and blank lines currently cause parse errors.
This commit fixes the parser to be more lenient.

https://bugs.freedesktop.org/show_bug.cgi?id=67006

12 years agoMiscellaneous fixes for compiler warnings
Steve Langasek [Fri, 28 Jun 2013 22:53:40 +0000 (15:53 -0700)] 
Miscellaneous fixes for compiler warnings

Fix various warnings turned up with -Wall.  After fixing these remaining
issues, plymouth now builds successfully with gcc 4.8 using
"-Werror -Wno-error=unused-result -Wno-error=sign-compare".

12 years agoscript: include head with prototype of ply_get_timestamp()
Steve Langasek [Fri, 28 Jun 2013 17:52:59 +0000 (10:52 -0700)] 
script: include head with prototype of ply_get_timestamp()

ply_get_timestamp() returns a double, but the compiler assumes it will
return an int if ply-utils.h isn't #included.  This disparity between
what gets returned and what the compiler is expecting will be returned
causes astonishing knock-on effects (the label plugin fails to display
any text). See:

https://bugs.launchpad.net/ubuntu/+source/plymouth/+bug/1187318

and

http://lists.freedesktop.org/archives/plymouth/2013-June/000733.html

12 years agomain: redirect standard io to /dev/null
Frederic Crozat [Mon, 10 Jun 2013 16:44:08 +0000 (18:44 +0200)] 
main: redirect standard io to /dev/null

do not redirect standard io to console tty anymore, it can cause issue
with Xorg grabbing tty
(https://bugzilla.novell.com/show_bug.cgi?id=811185).

Initial patch by Ray Strode

12 years agosystemd: make sure to ignore all exit codes in ExecStartPost
Frederic Crozat [Mon, 10 Jun 2013 16:54:47 +0000 (18:54 +0200)] 
systemd: make sure to ignore all exit codes in ExecStartPost

12 years agoterminal-session: don't close ptmx unless it's opened
Ray Strode [Mon, 10 Jun 2013 15:11:56 +0000 (11:11 -0400)] 
terminal-session: don't close ptmx unless it's opened

This prevents a scary close(-1) in straces.

12 years agoterminal-session: plug /dev/console fd leak
Ray Strode [Mon, 10 Jun 2013 14:44:56 +0000 (10:44 -0400)] 
terminal-session: plug /dev/console fd leak

When we stop redirecting console messages, we temporarly open
/dev/console.  We don't ever close it.

This commit fixes that.

12 years agologger: don't close already logger if already closed
Ray Strode [Thu, 6 Jun 2013 14:08:55 +0000 (10:08 -0400)] 
logger: don't close already logger if already closed

This prevents close(-1) from showing up in strace

12 years agoplymouth: Add line numbers to tracing output
Jeff Mahoney [Mon, 15 Apr 2013 04:27:16 +0000 (01:27 -0300)] 
plymouth: Add line numbers to tracing output

 The plymouth tracing output lists the function but there are many
 cases in which the same message is issued from multiple places in the same
 function, which makes debugging more difficult. This patch adds the line
 number to the output to uniquely identify each site.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Cristian Rodríguez <crrodriguez@opensuse.org>
12 years agoLookup the location of udevadm
Cristian Rodríguez [Mon, 15 Apr 2013 00:16:49 +0000 (21:16 -0300)] 
Lookup the location of udevadm

It is not always in /bin , but /usr/...

12 years agoconfigure: Use pkgconfig to determine the systemd unit dir location
Cristian Rodríguez [Sat, 13 Apr 2013 19:16:05 +0000 (16:16 -0300)] 
configure: Use pkgconfig to determine the systemd unit dir location

Don't assume it's in /lib/systemd/system

12 years agosystemd: Look up systemd-tty-ask-password-agent location
Cristian Rodríguez [Sat, 13 Apr 2013 19:17:51 +0000 (16:17 -0300)] 
systemd: Look up systemd-tty-ask-password-agent location

Don't assume it's in /bin.

12 years agodrm: inform kernel about recently flushed areas
Dave Airlie [Tue, 26 Mar 2013 16:11:05 +0000 (12:11 -0400)] 
drm: inform kernel about recently flushed areas

Some drivers (QXL in particular) require to be notified when a part
of the mapped frame buffer memory is changed.

This commit adds a drmModeDirtyFB call after flushing changes to the
frame buffer to accomplish that.

12 years agosystemd: add Wants: systemd-vconsole-setup.service
Ray Strode [Tue, 26 Mar 2013 15:41:14 +0000 (11:41 -0400)] 
systemd: add Wants: systemd-vconsole-setup.service

Harald says we need it.

12 years agosystemd: add plymouth-start.service to initrd-switch-root.target
Ray Strode [Wed, 13 Mar 2013 14:24:14 +0000 (10:24 -0400)] 
systemd: add plymouth-start.service to initrd-switch-root.target

<haraldh> halfline, can you add plymouth-start.service to
plymouth-populate-initrd ??
<halfline> haraldh: sure, can you give me details on the bug its fixing?
<haraldh> except, if you put yourself out of the plymouth cgroup
<haraldh> and the "@" in argv[0][0]
<haraldh> better put plymouth-start.service in the
initrd-switch-root.target
<haraldh> easier
<halfline> well we already do the "@" in argv[0][0]
<halfline> and we already put KillMode=none SendSIGKILL=no in the
service file
<halfline> but will add the change
<haraldh> hmm, ok

12 years agoanimation,throbber: go back to frame dropping
Ray Strode [Tue, 12 Mar 2013 15:57:15 +0000 (11:57 -0400)] 
animation,throbber: go back to frame dropping

Right now we figure out which animation frame to use
based on a static counter variable.  Since it's static
instead of per-object, if there are multiple instances
it ends up counting up too fast.

We could:
1) make it per-object state
2) drop it and use the ifdef'd out alternative implementation
that potentially drops frames if the machine is sluggish

This commit chooses 2, but we may end up going to one if the
frame dropping turns out to be problematic.

Based on deductive work from Kevin Murphy.

12 years agomain: use correct cache file
Ray Strode [Mon, 25 Feb 2013 19:41:48 +0000 (14:41 -0500)] 
main: use correct cache file

Now that we allow switching into the initrd we shouldn't try
to load the boot cache file when shutting down.

12 years agomain: all update-root-fs for shutdown
Ray Strode [Mon, 25 Feb 2013 19:39:25 +0000 (14:39 -0500)] 
main: all update-root-fs for shutdown

Some distros now switch root back to the initrd at shutdown.

This commit allows plymouth to go along for the ride.

12 years agogenerate-initrd: Use pigz if available.
Ville Skyttä [Tue, 12 Feb 2013 22:03:53 +0000 (00:03 +0200)] 
generate-initrd: Use pigz if available.

12 years agogitignore: Ignore systemd service and path files.
Ville Skyttä [Tue, 12 Feb 2013 22:10:56 +0000 (00:10 +0200)] 
gitignore: Ignore systemd service and path files.

12 years agoutils: don't create pipes non-blocking
Ray Strode [Tue, 11 Dec 2012 19:37:16 +0000 (14:37 -0500)] 
utils: don't create pipes non-blocking

The daemonizing code depends on its pipe io being
blocking.  The other user of ply_open_unidirectional_pipe
will work with blocking or non blocking io.

This commit changes ply_open_unidirectional_pipe to create
blocking pipes.  This started causing failures with
commit 9ec69929 since it replaced broken code (passing
O_NONBLOCK to fcntl(fd, F_SETFD.. instead of F_SETFL)
with working code.

12 years agoutils: Add strerror(errno) to error message
Colin Walters [Fri, 7 Dec 2012 14:08:21 +0000 (09:08 -0500)] 
utils: Add strerror(errno) to error message

So it's easier to debug why it fails.

12 years agomain: ensure add_consoles_from_file terminates buffer string
Ray Strode [Mon, 10 Dec 2012 16:55:32 +0000 (11:55 -0500)] 
main: ensure add_consoles_from_file terminates buffer string

This isn't a real problem in practice, since the files getting
read will be much smaller than the buffer, but it looks bad.

This commit ensures the buffer always leaves room for the terminating
NUL.

12 years agomain: fix small leak
Ray Strode [Mon, 10 Dec 2012 16:52:43 +0000 (11:52 -0500)] 
main: fix small leak

12 years agotext-progress-bar: fix os string parsing
Ray Strode [Mon, 10 Dec 2012 16:50:07 +0000 (11:50 -0500)] 
text-progress-bar: fix os string parsing

If there's no newline the the end of string variable will be NULL
instead of at the end of string.

12 years agothrobgress: add more debug spew
Will Woods [Thu, 29 Nov 2012 15:25:02 +0000 (10:25 -0500)] 
throbgress: add more debug spew

These were melded into place from two-step

12 years agopopulate-initrd: If PLYMOUTH_THEME_NAME is set, write it into plymouthd.conf
Will Woods [Thu, 29 Nov 2012 15:25:03 +0000 (10:25 -0500)] 
populate-initrd: If PLYMOUTH_THEME_NAME is set, write it into plymouthd.conf

You can set PLYMOUTH_THEME_NAME when building initramfs to get a
different theme into initramfs, but this doesn't change the default
theme, so the resulting initramfs won't actually use the theme we
installed.

This patch makes plymouth-populate-initrd rewrite the 'Theme=XXX' line
in plymouthd.conf, so plymouth will use the theme we install.

12 years agokey-file: use %m instead of %a in fscanf
Ray Strode [Wed, 7 Nov 2012 19:45:03 +0000 (14:45 -0500)] 
key-file: use %m instead of %a in fscanf

It's meaning is less muzzled and this fixes a compiler warning.

12 years agoUse fseeko and ftello just for the sake of LFS correctness
Cristian Rodríguez [Tue, 6 Nov 2012 02:09:46 +0000 (23:09 -0300)] 
Use fseeko and ftello just for the sake of LFS correctness

No bug involved.

12 years agoUse O_CLOEXEC where adequate, simplify its use.
Cristian Rodríguez [Tue, 6 Nov 2012 02:07:46 +0000 (23:07 -0300)] 
Use O_CLOEXEC where adequate, simplify its use.

12 years agosystemd: add WantedBy snippets
Christoph Brill [Wed, 7 Nov 2012 19:33:02 +0000 (14:33 -0500)] 
systemd: add WantedBy snippets

This fixes systemctl enable.

https://bugs.freedesktop.org/show_bug.cgi?id=38348

13 years agomain: make plymouth show-splash idempotent
Ray Strode [Fri, 2 Nov 2012 21:26:41 +0000 (17:26 -0400)] 
main: make plymouth show-splash idempotent

plymouth show-splash causes hairy things, that should only happen once,
like activating renderers to happen.

This commit makes subsequent show-splash calls be no-ops.

13 years agotwo-step: don't update progress when idle
Ray Strode [Thu, 1 Nov 2012 21:16:07 +0000 (17:16 -0400)] 
two-step: don't update progress when idle

We've already reach a state where we aren't drawing anymore, etc,
so don't update progress and potentially fire off animations
that won't be seen.

13 years agomain: if deactivate when already deactivated return immediately
Ray Strode [Thu, 1 Nov 2012 21:04:33 +0000 (17:04 -0400)] 
main: if deactivate when already deactivated return immediately

We were trying to ignore second deactivate requests, but
were instead crashing because we're trying to use a nullified
trigger.

This commit makes sure things don't go crashy when a user
does "plymouth deactivate" on an already deactivated plymouthd.

13 years agoconfigure: bump to 0.8.8 0.8.8
Ray Strode [Fri, 26 Oct 2012 15:01:07 +0000 (11:01 -0400)] 
configure: bump to 0.8.8

13 years agox11: make window fullscreen by default
Ray Strode [Wed, 24 Oct 2012 20:26:27 +0000 (16:26 -0400)] 
x11: make window fullscreen by default

The x11 plugin currently does multi-head by default, which is
sometimes useful, but often just gets in the way.

This commit makes it use one, fullscreen head by default, and
falls back to the old behavior if the PLY_CREATE_FAKE_MULTI_HEAD_SETUP
environment variable is set.

13 years agox11: only create windows when necessary
Ray Strode [Wed, 24 Oct 2012 20:12:23 +0000 (16:12 -0400)] 
x11: only create windows when necessary

right now, if a user does show-splash
more than once, the X11 plugin will keep recreating
windows.

This commit changes it to only create windows when necessary.

13 years agospace-flares: reshow label after changing message
Ray Strode [Wed, 24 Oct 2012 19:40:48 +0000 (15:40 -0400)] 
space-flares: reshow label after changing message

We should call ply_label_show any time we have a message
to show, so that if the root filesystem gets mounted, we
can try to load the label plugin again.

This should prevent weird situations where the text shows up
invisible unless the user hits escape twice.

http://bugs.freedesktop.org/show_bug.cgi?id=55669

13 years agofade-throbber: reshow label after changing message
Ray Strode [Wed, 24 Oct 2012 19:40:48 +0000 (15:40 -0400)] 
fade-throbber: reshow label after changing message

We should call ply_label_show any time we have a message
to show, so that if the root filesystem gets mounted, we
can try to load the label plugin again.

This should prevent weird situations where the text shows up
invisible unless the user hits escape twice.

http://bugs.freedesktop.org/show_bug.cgi?id=55669

13 years agothrobgress: reshow label after changing message
Ray Strode [Wed, 24 Oct 2012 19:40:48 +0000 (15:40 -0400)] 
throbgress: reshow label after changing message

We should call ply_label_show any time we have a message
to show, so that if the root filesystem gets mounted, we
can try to load the label plugin again.

This should prevent weird situations where the text shows up
invisible unless the user hits escape twice.

http://bugs.freedesktop.org/show_bug.cgi?id=55669

13 years agotwo-step: reshow label after changing message
Ray Strode [Wed, 24 Oct 2012 19:40:48 +0000 (15:40 -0400)] 
two-step: reshow label after changing message

We should call ply_label_show any time we have a message
to show, so that if the root filesystem gets mounted, we
can try to load the label plugin again.

This should prevent weird situations where the text shows up
invisible unless the user hits escape twice.

http://bugs.freedesktop.org/show_bug.cgi?id=55669

13 years agoboot-splash: avoid crash if plugin doesn't support system updates
Ray Strode [Wed, 24 Oct 2012 18:50:27 +0000 (14:50 -0400)] 
boot-splash: avoid crash if plugin doesn't support system updates

Right now if the user hits escape a couple of times they'll get
a crash, since the details plugin doesn't support system updates.

This commit makes ply_boot_splash_system_update a no-op in the
event the splash doesn't support that feature.

13 years agothrobber: stop throbber when freed
Ray Strode [Wed, 24 Oct 2012 17:08:41 +0000 (13:08 -0400)] 
throbber: stop throbber when freed

It's possible that a throbber could get freed while animating.
In that case, stop the animation right away, so we don't keep
running the animation timeout on freed memory.

13 years agoanimaton: stop animation when freed
Ray Strode [Wed, 24 Oct 2012 17:08:41 +0000 (13:08 -0400)] 
animaton: stop animation when freed

It's possible that an animation could get freed before it finishes.
In that case, finish the animation right away, so we don't keep running the
animation timeout on freed memory.

13 years agothrobgress: support system-update feature
Richard Hughes [Wed, 26 Sep 2012 16:37:08 +0000 (17:37 +0100)] 
throbgress: support system-update feature

This commit adds support for the system-update command
by updating the throbgress progress bar.

13 years agomain: Quiet compiler warning about free(const char *)
Colin Walters [Tue, 25 Sep 2012 19:01:54 +0000 (15:01 -0400)] 
main: Quiet compiler warning about free(const char *)

Just make a duplicate variable.

13 years agoplymouthd: set default theme to spinner
Ray Strode [Fri, 21 Sep 2012 19:54:47 +0000 (15:54 -0400)] 
plymouthd: set default theme to spinner

It's a nicer default than fade-in.

13 years agotext: drop unused defines
Ray Strode [Tue, 18 Sep 2012 18:34:27 +0000 (14:34 -0400)] 
text: drop unused defines

13 years agoservice: start plymouthd unconditionally
Cosimo Cecchi [Mon, 10 Sep 2012 20:32:45 +0000 (16:32 -0400)] 
service: start plymouthd unconditionally

It's possible to get in a state where plymouthd is
started in the initrd but not displayed.  In the
event this happens, we'll neglect to ever show it,
since it already has a pid file.

plymouthd is now hardened against getting called
multiple times, so we no longer need to protect it
at the systemd level.

This commit drops the

ConditionPathExists=!@plymouthruntimedir@/pid

line from the systemd service file, so we always
call plymouthd from the main fs and always call
plymouth show-splash.

13 years agomain: silently succeed if plymouthd is started a second time
Cosimo Cecchi [Mon, 10 Sep 2012 20:33:53 +0000 (16:33 -0400)] 
main: silently succeed if plymouthd is started a second time

Make plymouthd idempotent to multiple calls.  This will make
it easier to integrate with boot scripts that start plymouthd
in the initrd and from the main fs.

13 years agomain: Try to own socket before anything else
Cosimo Cecchi [Mon, 10 Sep 2012 20:44:46 +0000 (16:44 -0400)] 
main: Try to own socket before anything else

The first thing plymouthd should do is try to take control
over its server socket.  If it can't do that, then no plymouth
client will be able to communicate with it.  The socket is
also how we can detect if plymouthd is already running.

13 years agomain: fix debug message
Cosimo Cecchi [Mon, 10 Sep 2012 20:43:09 +0000 (16:43 -0400)] 
main: fix debug message

If plymouthd is already running, then a second invocation will
fail with the message:

could not log bootup

This message is misleading, so fix it.

13 years agoconfigure: bump to 0.8.7 0.8.7
Ray Strode [Mon, 20 Aug 2012 23:25:52 +0000 (19:25 -0400)] 
configure: bump to 0.8.7

13 years agosystemd: start after udev triggers
Ray Strode [Mon, 20 Aug 2012 18:35:34 +0000 (14:35 -0400)] 
systemd: start after udev triggers

This fixes the race where udevadm settle finishes too early.

13 years agorevert spurious broken changes in master commit 468c53a
Alban Browaeys [Mon, 13 Aug 2012 07:52:17 +0000 (09:52 +0200)] 
revert spurious broken changes in master commit 468c53a

https://bugs.freedesktop.org/show_bug.cgi?id=53440

13 years agoscript: Add alignment argument to Image.Text
Anisse Astier [Tue, 7 Aug 2012 08:22:09 +0000 (10:22 +0200)] 
script: Add alignment argument to Image.Text

Enables scripts to choose the text alignment they want with a seventh
argument to Image.Text API:

    new_image = Image.Text("Hello\n"
                           "Plymouth aligned world",
                            1, 1, 1, 1,
                           "DejaVu Bold,Italic 18",
                           "center");

This argument can be ignored, the default being left aligned.
Possible values are "left", "center", or "right".

http://lists.freedesktop.org/archives/plymouth/2012-August/000676.html

13 years agoply-text-progress-bar: strip quotes if present
Jan Engelhardt [Sun, 29 Jul 2012 18:25:21 +0000 (20:25 +0200)] 
ply-text-progress-bar: strip quotes if present

The syntax for sysconfig-style files allows for quotes.

13 years agobuild: fix typo in configure.ac
Jan Engelhardt [Sun, 29 Jul 2012 17:34:15 +0000 (19:34 +0200)] 
build: fix typo in configure.ac

s/reelase/release/

13 years agoply-terminal: remove pointless casts
Jan Engelhardt [Sun, 29 Jul 2012 17:11:21 +0000 (19:11 +0200)] 
ply-terminal: remove pointless casts

The target variables are already of the desired type.

13 years agosystemd: don't run read-write service from initrd
Ray Strode [Thu, 26 Jul 2012 17:05:22 +0000 (13:05 -0400)] 
systemd: don't run read-write service from initrd

the initrd hits the local-fs.target as part of its normal
boot process.  We used to use local-fs.target as a way of
knowing the system / is read-write.  This no longer is a
valid mechanism.

This commit:

1) Stops installing plymouth-read-write service in the initrd
2) Makes it so if it does end up in the initrd it won't be
used

Related to fedora bug 830482

13 years agothrobgress: s/TRUE/true/
Ray Strode [Tue, 24 Jul 2012 02:49:24 +0000 (22:49 -0400)] 
throbgress: s/TRUE/true/

I introduced a compilation error in Ian's patch when changing it
slightly.

13 years agothrogress: pull trigger right away if already idle
Ian Pilcher [Mon, 23 Jul 2012 21:54:19 +0000 (17:54 -0400)] 
throgress: pull trigger right away if already idle

commit eed536ba544dee38aee3c697efd2e3980362954a introduced
a fix for hangs in the two-step plugin. This is a comparable
commit for throbgress.

https://bugzilla.redhat.com/show_bug.cgi?id=704658

13 years agoconfigure: bump to 0.8.6.2
Ray Strode [Mon, 23 Jul 2012 17:33:18 +0000 (13:33 -0400)] 
configure: bump to 0.8.6.2

13 years agopopulate-initrd: copy service files to initrd
Ray Strode [Mon, 23 Jul 2012 17:22:46 +0000 (13:22 -0400)] 
populate-initrd: copy service files to initrd

Since we're in charge of the systemd service files now,
we should probably be in charge of copying them to the initrd.

13 years agosystemd: add plymouth-switch-root.service
Ray Strode [Mon, 23 Jul 2012 17:08:45 +0000 (13:08 -0400)] 
systemd: add plymouth-switch-root.service

This service file is needed by systemdized dracut to ensure we properly
transition from the initrd to the root file system

13 years agosystemd: more updates to start service
Ray Strode [Mon, 23 Jul 2012 21:36:03 +0000 (17:36 -0400)] 
systemd: more updates to start service

The dashes next to the semi-colons seem to confuse systemd so drop them.

13 years agosystemd: create missing links various targets
Frederic Crozat [Fri, 20 Jul 2012 13:28:31 +0000 (15:28 +0200)] 
systemd: create missing links various targets

13 years agosystemd: make sure plymouth-start never gets killed
Ray Strode [Tue, 17 Jul 2012 21:12:03 +0000 (17:12 -0400)] 
systemd: make sure plymouth-start never gets killed

systemd tries to bring down the world when going from
the initramfs to /

commit 9e5a276f322cfce46b5b2ed2125cb9ec67df7e9f tried
to prevent plymouthd from getting killed by settings
argv[0][0] to @

This isn't seemingly sufficient.  Throw some lines into
the plymouth-start service file that should hopefully help.

13 years agopopulate-initrd: put plymouthd in /sbin not /bin
Ray Strode [Tue, 17 Jul 2012 21:09:18 +0000 (17:09 -0400)] 
populate-initrd: put plymouthd in /sbin not /bin

This matches what we do post-boot better

13 years agoconfigure: bump to 0.8.6.1 0.8.6.1
Ray Strode [Tue, 10 Jul 2012 14:18:13 +0000 (10:18 -0400)] 
configure: bump to 0.8.6.1

13 years agosystemd: unfoul up Makefile
Ray Strode [Tue, 10 Jul 2012 14:16:29 +0000 (10:16 -0400)] 
systemd: unfoul up Makefile

The previous systemd commit introduced a file named

systemd-ask-password-plymouth.path.in

The makefile was only looking for .service.in files
when stripping the .in suffix, so it got installed
incorrectly.

This commit fixes up the Makefile.

13 years agoconfigure: bump to 0.8.6
Ray Strode [Tue, 10 Jul 2012 14:16:13 +0000 (10:16 -0400)] 
configure: bump to 0.8.6

13 years agosystemd: add two more files 0.8.6
Ray Strode [Mon, 9 Jul 2012 15:59:59 +0000 (11:59 -0400)] 
systemd: add two more files

When plymouth service files were moved from systemd to plymouth
two files got lost in the shuffle.

This commit adds them.

http://bugzilla.freedesktop.org/51573

13 years agoframe-buffer: fix flush_area fast-path
David Herrmann [Sun, 24 Jun 2012 10:06:07 +0000 (12:06 +0200)] 
frame-buffer: fix flush_area fast-path

plymouth uses a shadow framebuffer to cache screen contents for
quick compositing.  This shadow framebuffer may or may not have
the same memory layout as the hardware framebuffer.  In cases
where the size and layout of pixels are the same between the shadow
framebuffer and the hardware framebuffer we can memcpy()
the pixels line-by-line to the hardware.  If the width of area being
flushed is the same number of bytes as the width of the hardware buffer,
then we can memcpy() the entire flush area in one call to memcpy.

The check for this latter fast-path has a miscalculation that tests
the number of pixels in the flush area width to number of bytes in the
buffer width. This commit adds the * 4 multiplier to correctly compare
bytes with bytes instead of pixels with bytes.

This commit also adds a sanity check to make sure the byte size of the
hardware framebuffer width is equal to the advertised row stride.

13 years agosystemd: more udev clean ups
Ray Strode [Wed, 20 Jun 2012 15:57:06 +0000 (11:57 -0400)] 
systemd: more udev clean ups

The udev trigger calls that are there, are actually
spurious.  udev will coldplug those subsystems at
start up anyway, so doing it explicitly is wrong.

This commit drops those trigger calls.

What does matter is the udevadm settle call. It's
what makes things block until the graphics driver
is loaded.

udevadm settle is a big sledgehammer, though. It blocks
until all the triggered events (even stuff unrelated to
graphics) are finished.

This commit adds a --exit-if-exists argument to udevadm settle,
so it will bail early as soon as the graphics devices
are up.