Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Plymouth: display text on boot splash
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
fernan82
n00b
n00b


Joined: 24 Jul 2014
Posts: 70

PostPosted: Thu Dec 04, 2014 5:06 am    Post subject: Plymouth: display text on boot splash Reply with quote

I'm using the script plymouth plugin for my theme and I got a custom initramfs. I'm trying to display a message on the splash screen. It works fine when I start the splash screen from the root filesystem, but when I run it from the initramfs the text message is not displayed. Everything else (animation) works fine.

I've copied everything genkernel copiees to the initramfs for plymouth, plus I also got the pango libraries, glibc, gobject, and gmodule libraries, I copied /etc/fonts, /usr/share/fonts, and /etc/pango.

What else do I need to get text messages woring from initramfs?

Here's the script I use to copy plymouth to the initramfs, I got some stuff I dont need in there cause I'm messing around with it.

Code:

# copy plymouth files
#
echo 'Copying plymouth files...'
mkdir -p $output_dir/etc/plymouth || last_error=1
mkdir -p $output_dir/usr/share/plymouth/themes || last_error=1
mkdir -p $output_dir/usr/lib/plymouth/renderers || last_error=1
cp /bin/plymouth $output_dir/bin/plymouth || last_error=1
cp /sbin/plymouthd $output_dir/sbin/plymouthd || last_error=1
cp -r /etc/plymouth/* $output_dir/etc/plymouth || last_error=1
#cp -r /usr/share/plymouth/* $output_dir/usr/share/plymouth || last_error=1

cp /usr/lib/libply.so.2 $output_dir/usr/lib
cp /usr/lib/libply-splash-core.so.2 $output_dir/usr/lib
cp /usr/lib/libply-splash-graphics.so.2 $output_dir/usr/lib


mkdir -p $output_dir/usr/share/fonts
mkdir -p $output_dir/usr/share/fonts/truetype
cp -r /usr/share/fonts/dejavu $output_dir/usr/share/fonts/dejavu
cp -r /usr/share/fonts/dejavu $output_dir/usr/share/fonts/truetype/dejavu
#cp /usr/share/fonts/dejavu/DejaVuSans.ttf  $output_dir/usr/share/fonts/dejavu

mkdir -p $output_dir/etc/pango
cp -r /etc/pango/* $output_dir/etc/pango
cp -r /etc/fonts $output_dir/etc/fonts

#cp -r /usr/lib/pango $output_dir/usr/lib/pango
#cp /usr/lib/plymouth/* $output_dir/usr/lib/plymouth -r
#cp /usr/lib/libpango-1.0.so.0.3600.5 $output_dir/usr/lib
ln -s libpango-1.0.so.0.3600.5 $output_dir/usr/lib/libpango-1.0.so
ln -s libpango-1.0.so.0.3600.5 $output_dir/usr/lib/libpango-1.0.so.0
cp -r /usr/lib/*pango* $output_dir/usr/lib/
cp /usr/lib/libgobject-2.0.so.0 $output_dir/usr/lib
cp /usr/lib/libgmodule-2.0.so.0 $output_dir/usr/lib
cp /usr/lib/libglib-2.0.so.0 $output_dir/usr/lib
cp /usr/lib/libffi.so.6 $output_dir/usr/lib
cp /lib/libm.so.6 $output_dir/lib


#cp /usr/lib/libpangocairo-1.0.so.0.3600.5 $output_dir/usr/lib
#ln -s libpangocairo-1.0.so.0.3600.5 $output_dir/usr/lib/libpangocairo-1.0.so
#ln -s libpangocairo-1.0.so.0.3600.5 $output_dir/usr/lib/libpangocairo-1.0.so.0

cp /usr/lib/libpng16.so.16 $output_dir/usr/lib
cp /usr/lib/libkms.so.1 $output_dir/usr/lib
cp /usr/lib/libdrm.so.2 $output_dir/usr/lib

cp /lib/libc.so.6 $output_dir/lib
cp /lib/librt.so.1 $output_dir/lib
cp /lib/libdl.so.2 $output_dir/lib
cp /lib/libm.so.6 $output_dir/lib
cp /lib/ld-linux-x86-64.so.2 $output_dir/lib
cp /lib/libpthread.so.0 $output_dir/lib
cp /lib/libkmod.so.2 $output_dir/lib
cp /lib/libz.so.1 $output_dir/lib

cp /lib/libacl.so.1 $output_dir/lib
cp /lib/libuuid.so.1 $output_dir/lib
cp /lib/libblkid.so.1 $output_dir/lib
cp /lib/libattr.so.1 $output_dir/lib

cp /usr/lib/plymouth/text.so $output_dir/usr/lib/plymouth
cp /usr/lib/plymouth/details.so $output_dir/usr/lib/plymouth
cp /usr/lib/plymouth/renderers/frame-buffer.so $output_dir/usr/lib/plymouth/renderers
cp /usr/lib/plymouth/renderers/drm.so $output_dir/usr/lib/plymouth/renderers
cp /usr/lib/plymouth/renderers/x11.so $output_dir/usr/lib/plymouth/renderers

cp /usr/share/plymouth/bizcom.png $output_dir/usr/share/plymouth
cp /usr/share/plymouth/plymouthd.defaults $output_dir/usr/share/plymouth
cp -r /usr/share/plymouth/themes/text $output_dir/usr/share/plymouth/themes
cp -r /usr/share/plymouth/themes/details $output_dir/usr/share/plymouth/themes
error_check

# Copy plymouth theme
#
ply_theme=$(plymouth-set-default-theme)
ply_theme_file=/usr/share/plymouth/themes/$ply_theme/$ply_theme.plymouth
ply_plugins=$(plymouth --get-splash-plugin-path)

[ -z "$ply_theme" ] && plymouth_theme=text
echo 'Copying plymouth theme: '$ply_theme'...'
cp -r /usr/share/plymouth/themes/$ply_theme $output_dir/usr/share/plymouth/themes
cp -r $ply_plugins$(grep "^ModuleName=" $ply_theme_file | cut -d= -f2-).so $output_dir$ply_plugins
ln -s $ply_theme/$ply_theme.plymouth $output_dir/usr/share/plymouth/themes/default.plymouth

error_check




ps. Please move my post if this is the wrong forum, I wasn't sure where to post.
Back to top
View user's profile Send private message
fernan82
n00b
n00b


Joined: 24 Jul 2014
Posts: 70

PostPosted: Fri Dec 05, 2014 5:31 pm    Post subject: Reply with quote

I got it working. In case anyone else needs it, here's everything you need on the initrd:

Code:

# copy plymouth files
#
echo 'Copying plymouth files...'
mkdir -p $output_dir/etc/plymouth || last_error=1
mkdir -p $output_dir/usr/share/plymouth/themes || last_error=1
mkdir -p $output_dir/usr/lib/plymouth/renderers || last_error=1
cp /bin/plymouth $output_dir/bin/plymouth || last_error=1
cp /sbin/plymouthd $output_dir/sbin/plymouthd || last_error=1
cp -r /etc/plymouth/* $output_dir/etc/plymouth || last_error=1

cp /usr/lib/libply.so.2 $output_dir/usr/lib
cp /usr/lib/libply-splash-core.so.2 $output_dir/usr/lib
cp /usr/lib/libply-splash-graphics.so.2 $output_dir/usr/lib
cp /usr/lib/libpng16.so.16 $output_dir/usr/lib
cp /usr/lib/libkms.so.1 $output_dir/usr/lib
cp /usr/lib/libdrm.so.2 $output_dir/usr/lib
cp /lib/libc.so.6 $output_dir/lib
cp /lib/librt.so.1 $output_dir/lib
cp /lib/libdl.so.2 $output_dir/lib
cp /lib/libm.so.6 $output_dir/lib
cp /lib/ld-linux-x86-64.so.2 $output_dir/lib
cp /lib/libpthread.so.0 $output_dir/lib
cp /lib/libkmod.so.2 $output_dir/lib
cp /lib/libz.so.1 $output_dir/lib
cp /lib/libacl.so.1 $output_dir/lib
cp /lib/libuuid.so.1 $output_dir/lib
cp /lib/libblkid.so.1 $output_dir/lib
cp /lib/libattr.so.1 $output_dir/lib
cp /usr/lib/plymouth/text.so $output_dir/usr/lib/plymouth
cp /usr/lib/plymouth/label.so $output_dir/usr/lib/plymouth
cp /usr/lib/plymouth/details.so $output_dir/usr/lib/plymouth
cp /usr/lib/plymouth/renderers/frame-buffer.so $output_dir/usr/lib/plymouth/renderers
cp /usr/lib/plymouth/renderers/drm.so $output_dir/usr/lib/plymouth/renderers
#cp /usr/share/plymouth/bizcom.png $output_dir/usr/share/plymouth
cp /usr/share/plymouth/plymouthd.defaults $output_dir/usr/share/plymouth
cp -r /usr/share/plymouth/themes/text $output_dir/usr/share/plymouth/themes
cp -r /usr/share/plymouth/themes/details $output_dir/usr/share/plymouth/themes
error_check

# plymouth pango support
#
mkdir -p $output_dir/etc/fonts
mkdir -p $output_dir/etc/pango
cp /etc/fonts/fonts.conf $output_dir/etc/fonts
cp -r /etc/pango/* $output_dir/etc/pango

cp /usr/lib64/libpangocairo-1.0.so.0 $output_dir/usr/lib
cp /usr/lib64/libpango-1.0.so.0 $output_dir/usr/lib
cp /usr/lib64/libgobject-2.0.so.0 $output_dir/usr/lib
cp /usr/lib64/libcairo.so.2 $output_dir/usr/lib
cp /usr/lib64/libpangoft2-1.0.so.0 $output_dir/usr/lib
cp /usr/lib64/libglib-2.0.so.0 $output_dir/usr/lib
cp /usr/lib64/libfreetype.so.6 $output_dir/usr/lib
cp /usr/lib64/libfontconfig.so.1 $output_dir/usr/lib
cp /usr/lib64/libgmodule-2.0.so.0 $output_dir/usr/lib
cp /usr/lib64/libffi.so.6 $output_dir/usr/lib
cp /usr/lib64/libpixman-1.so.0 $output_dir/usr/lib
cp /usr/lib64/libEGL.so.1 $output_dir/usr/lib
cp /usr/lib64/libxcb-shm.so.0 $output_dir/usr/lib
cp /usr/lib64/libxcb-render.so.0 $output_dir/usr/lib
cp /usr/lib64/libxcb.so.1 $output_dir/usr/lib
cp /usr/lib64/libXrender.so.1 $output_dir/usr/lib
cp /usr/lib64/libX11.so.6 $output_dir/usr/lib
cp /usr/lib64/libXext.so.6 $output_dir/usr/lib
cp /usr/lib64/libGL.so.1 $output_dir/usr/lib
cp /usr/lib64/libharfbuzz.so.0 $output_dir/usr/lib
cp /lib/libbz2.so.1 $output_dir/lib
cp /usr/lib64/libexpat.so.1 $output_dir/usr/lib
cp /usr/lib64/libX11-xcb.so.1 $output_dir/usr/lib
cp /usr/lib64/libxcb-dri2.so.0 $output_dir/usr/lib
cp /usr/lib64/libxcb-xfixes.so.0 $output_dir/usr/lib
cp /usr/lib64/libgbm.so.1 $output_dir/usr/lib
cp /usr/lib64/libXau.so.6 $output_dir/usr/lib
cp /usr/lib64/libXdmcp.so.6 $output_dir/usr/lib
cp /usr/lib64/libatiuki.so.1 $output_dir/usr/lib
cp /usr/lib64/libgraphite2.so.3 $output_dir/usr/lib

mkdir -p $output_dir/usr/lib/pango/1.8.0/modules
mkdir -p $output_dir/usr/share/fonts/dejavu
cp /usr/lib64/pango/1.8.0/modules/pango-basic-fc.so $output_dir/usr/lib/pango/1.8.0/modules
cp /usr/share/fonts/dejavu/DejaVuSans.ttf $output_dir/usr/share/fonts/dejavu
cp /usr/share/fonts/dejavu/DejaVuSans.ttf $output_dir/usr/share/fonts/dejavu

# Copy plymouth theme
#
ply_theme=$(plymouth-set-default-theme)
ply_theme_file=/usr/share/plymouth/themes/$ply_theme/$ply_theme.plymouth
ply_plugins=$(plymouth --get-splash-plugin-path)
[ -z "$ply_theme" ] && plymouth_theme=text
echo 'Copying plymouth theme: '$ply_theme'...'
cp -r /usr/share/plymouth/themes/$ply_theme $output_dir/usr/share/plymouth/themes
cp -r $ply_plugins$(grep "^ModuleName=" $ply_theme_file | cut -d= -f2-).so $output_dir$ply_plugins
ln -s $ply_theme/$ply_theme.plymouth $output_dir/usr/share/plymouth/themes/default.plymouth
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum