Commit graph

151 commits

Author SHA1 Message Date
Ray Strode
288a42120e set-default-theme: exit 0 at bottom of file
This is so that if there is no --rebuild-initrd it still
exits successfully.
2010-09-29 13:25:22 -04:00
Ray Strode
e5380671be [populate-initrd] don't croak when encountering broken symlink
Because of an apparent think-o in the script, if a custom theme
has a broken symlink in it, plymouth-populate-initrd would silently
stop processing files and ship an incomplete set of data files.

This commit changes "break" to "continue" so that broken symlinks
are ignored, which was probably the original intent.
2010-07-13 17:33:39 -04:00
Bruce Jerrick
95bf9eed86 [set-default-theme] Properly quote arguments to basename
It's important to make sure the theme name is properly
quoted when passed to the basename command.  This
is because, if the theme name is empty we want the empty
string returned, not the suffix that would otherwise be
stripped off.

Some discussion here:
https://bugzilla.redhat.com/show_bug.cgi?id=606634
2010-07-06 11:16:43 -04:00
Ray Strode
070d2a0a5a [set-default-theme] More fixes to the fallback logic
It still wasn't properly falling back in the event the
configured theme was uninstalled.
2010-05-14 10:56:00 -04:00
Ray Strode
07d5f10f60 [set-default-theme] Add more compat goo
If there's no configured theme installed, return "text"
2010-05-07 15:35:49 -04:00
Charlie Brej
991549626b [plymouth-set-default-theme] Replace tabs with spaces 2010-03-25 22:42:26 +00:00
Frederic Crozat
75ae8d50cc [plymouth-set-default-theme] handle old symlink configuration file 2010-03-25 17:30:41 +01:00
Ray Strode
2ecbcd99eb [set-default-theme] Another fix with commented group lines 2010-03-24 15:10:35 -04:00
Ray Strode
91547048f8 [set-default-theme] properly handle commented out [Daemon] section
Before we would assume there was a valid [Daemon] section already
if a comment contained [Daemon] in it.
2010-03-24 13:59:17 -04:00
Ray Strode
cf766763f2 [daemon] Ship default configuration files
This commit adds plymouthd.defaults and plymouthd.conf.

The former is for distributions to override, and the latter
is for administrators to change.
2010-03-23 18:00:50 -04:00
Ray Strode
5baed15f09 [set-default-theme] Write plymouthd.conf instead of symlink
Now that the daemon looks for the default theme in configuration
files, we should make plymouth-set-default-theme write the
configuration files instead of doing symlinks.

That's what this commit does.
2010-03-23 17:54:08 -04:00
Scott James Remnant
df26cfe6ed [scripts] Don't hardcode LIBEXECDIR and DATADIR paths
The scripts hard-coded the paths for LIBEXECDIR and DATADIR, unless
passed as environment variables.  Instead of doing this, which breaks
if plymouth is installed outside of /usr, set these derived from the
configure $libexecdir and $datadir variables just as we do for
pkg-config, etc.

Since we use so many variables, it makes more sense to generate these
scripts from config.status rather than having special Makefile rules
for them.
2010-03-02 20:08:22 +00:00
Ray Strode
cc85f63927 [splash] Rename libplybootsplash to libply-splash-core
Splashes aren't just shown for "boot" so including "boot" in
the name isn't right.  Also, right now we link against libpng
even if we don't have any splash that uses it.  This is the first
step toward making libpng only get linked to graphical splashes.

We'll need to move the graphical bits to their own library to
complete the process.
2010-01-13 16:47:09 -05:00
Adrian Glaubitz
c588145997 [set-default-theme] Provide GNU-style short options 2009-12-16 08:35:06 -05:00
Charlie Brej
828fda6fb5 [set-default-theme] Make --help format match that of plymouth and plymouthd
Minor rejig to make the help messages more consistant. Also removes some tabs
and empty lines.
2009-12-14 21:29:01 +00:00
Ray Strode
e40e0b8719 [set-default-theme] Call usage function in --help
This way the top line of the help output gives usage.
2009-12-05 12:08:53 -05:00
Adrian Glaubitz
8d6358fc4f [set-default-theme] Add --help option
When running new, unfamiliar commands I usually invoke them with
--help to see what options they have. For plymouth-set-default-theme,
there is no --help option which I find a bit confusing, especially
since the usage is not straight-forward.

There is now an additional function "show_help" which displays an
help output when invoking plymouth-set-default-theme with --help.
2009-12-05 12:08:01 -05:00
Ray Strode
8e70c530ea [set-default-theme] Drop nash dependency
Now we require one of

1) /bin/plymouth being installed
2) PLYMOUTH_PLUGIN_PATH being set
3) LIB being set (for compatibility)
2009-11-03 23:31:51 -05:00
Ray Strode
920051bc55 [drm] Add start of a drm plugin
This commit adds most of the non-driver specific bits
necessary for backing a renderer plugin.

Subsequent commits will add the driver specific bits.
2009-09-28 17:55:19 -04:00
Ray Strode
d47959e042 [renderer] Add start of frame-buffer plugin
Much of this code comes directly from ply-frame-buffer in libply,
but shoehorned to fit into the renderer plugin interface.

One improvement over the old code is it tracks VT changes, and
stops drawing when the wrong VT is active.
2009-09-28 11:23:37 -04:00
Ray Strode
3c2e1453d9 [populate-initrd] Don't require set_verbose function
If it's not around, define it, so we can use it without error
2009-09-10 09:55:18 -04:00
Ray Strode
736822e2f2 [populate-initrd] Try to find inst more aggressively
We've been using the inst function provided by mkinitrd
to install plymouth and its dependencies into the initrd
root, but mkinitrd may not be installed in a dracut world,
and dracut has its own inst function.

This commit tries getting access to either of them, before
bailing. At some point we may want to bundle our own inst
function or get a new flag added to /usr/bin/install to do
what inst does.
2009-09-09 11:26:46 -04:00
Ray Strode
803204e6cb [scripts] add plymouth-generate-initrd script
One useful way to use plymouth is by installing it into
an auxillary initrd image, that overlays the primary one.

This allows plymouth and its current theme to get updated
indepedently of the kernel and the rest of the initrd
stuff.

plymouth-generate-initrd creates an initrd named:

     initrd-plymouth.img

in /boot that is suitable for use a second initrd on
the initrd line in grub.conf.
2009-08-28 20:04:17 -04:00
Ray Strode
d633072a71 [populate-initrd] Get plugin path from plymouth
Previously, we'd try to guess the plugin path based
on the arch of the running process.  That's sort of
fragile, so better to just install plugins where
plymouth says it's going to look for them.
2009-08-25 14:53:31 -04:00
Frederic Crozat
279e709d91 allow to change system release filename with configure option 2009-08-11 17:25:41 +02:00
Ray Strode
6acf834f1e [splash] Split splashes into plugins and themes
Some of the plugins (well, the glow plugin) would be a lot more
versatile if they could be reused for multiple splashes with different
images.

This commit splits boot splashes into two parts, the plugin engine which
does all the dirty work, and the theme which says which plugin to use
and optionally how the plugin should work (using plugin specific
key/value pairs)
2009-05-20 17:27:52 -04:00
Ray Strode
4e1004c19d exit plymouth-set-default-plugin cleanly when --rebuild-initrd isn't given 2009-03-06 18:03:28 -05:00
Charlie Brej
631b14c1b7 In plymouth-set-default-plugin on reset make sure we do not set label.so as a
default splash plugin.
2009-02-24 09:27:53 +00:00
Ray Strode
711636ec6a Call --reset when giving default plugin if needed
Previously, we tried to do this but failed because
of a buggy conditional.
2008-11-21 11:49:53 -05:00
Ray Strode
b295846642 Add --list to plymouth-set-default-plugin
https://bugs.freedesktop.org/show_bug.cgi?id=18298 requests
the ability to a get a list of plugins.
2008-11-19 14:18:48 -05:00
Ray Strode
91a93445b3 Add a --rebuild-initrd arg for set-default-plugin
Normally when a user runs plymouth-set-default-plugin
to change which plugin plymouth uses, the change doesn't
take effect until a new kernel is installed and the initrd
is rebuilt.

This new --rebuild-initrd argument forces the currently
running initrd to get rebuilt immediately (bug 18297).
2008-11-19 11:26:58 -05:00
Ray Strode
02ea84e6d3 Add usage info to plymouth-set-default-plugin 2008-11-19 11:26:58 -05:00
Ray Strode
b0273ca055 Don't error if default.so doesn't exist
There are cases where we don't set a default and instead
fallback at runtime to text.so.  Don't make that an error
condition.
2008-11-17 15:31:59 -05:00
Ray Strode
b038572c63 Don't reset LIB="lib" when LIB is in environment
It was causing scriptlet failures.
2008-11-12 16:26:16 -05:00
Jeremy Katz
218064c122 Make populate-initrd default plugin tweakable
It's occasionally useful to be able to specify
the which plugin to use with plymouth-populate-initrd.
2008-11-10 11:16:24 -05:00
Ray Strode
845f4dd500 Don't require plymouth to set default plugin
Package ordering requires set-default-plugin
to get called early.
2008-10-30 12:58:53 -04:00
Ray Strode
8f7cf9a139 Gut plymouth-update-initrd
It's broken and people keep using it, so change it so that it's
useful.
2008-10-17 15:49:31 -04:00
Ray Strode
88e1b4d417 update libdir detection to reflect to plymouth dir
Previously, plymouth was installed in /usr/bin and
we'd look for it there to figure out if this is a
64-bit or 32-bit install. Now it's in /bin, so we
need to look in /bin instead.
2008-10-06 14:19:38 -04:00
Ray Strode
69e479e5f8 Move plymouth client/daemon/libply out of /usr
Since we may be calling plymouth before /usr is
mounted we need to make sure it's not in /usr.

The daemon could technically stay in /usr/libexec,
but if we're moving the client, should move the
daemon, too, I guess.
2008-10-06 10:32:05 -04:00
Ray Strode
2a1f24f597 Add new "text" plugin from Adam Jackson
This one is prettier than the previous
one that's been deemed "cylon" and "kit"
before.
2008-09-28 23:40:28 -04:00
Christoph Brill
b6da503604 Fix sandbox builds (by using DESTDIR)
plymouth-update-initrd was getting passed
the logo location without DESTDIR
2008-09-11 23:01:37 -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
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
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
ad6d1eb75f Make --reset chooser the most recent plugin not the oldest 2008-06-23 19:26:33 -04:00
Ray Strode
eae4d16381 Don't create plugin specific data dir in initrd unless it has one 2008-06-19 16:57:26 -04:00
Peter Jones
e219bb6e67 Fix ldconfig to be run on -libs not on the main package.
Fix main package and plugins not to reset inappropriately.
2008-06-17 13:41:58 -04:00
Peter Jones
1892caa3df Make plymouth-populate-initrd run "plymouth-set-default-plugin --reset" if none is set. 2008-06-17 11:47:23 -04:00
Peter Jones
a6f91f55b1 Name the default plugin "default.so", not "graphical.so", so that it's obvious what's going on there. 2008-06-13 17:16:44 -04:00