/usr/share/initramfs-tools/hooks/plymouth is in plymouth 0.8.8-0ubuntu17.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | #!/bin/sh
OPTION=FRAMEBUFFER
PREREQ="framebuffer"
prereqs()
{
echo "$PREREQ"
}
case $1 in
prereqs)
prereqs
exit 0
;;
esac
[ -x /sbin/plymouthd ] || exit 0
. /usr/share/initramfs-tools/hook-functions
mkdir -p ${DESTDIR}/lib/x86_64-linux-gnu/plymouth/renderers
mkdir -p ${DESTDIR}/lib/plymouth/themes
copy_exec /sbin/plymouthd /sbin
copy_exec /bin/plymouth /bin
# plugin that is always required
copy_exec /lib/x86_64-linux-gnu/plymouth/details.so /lib/x86_64-linux-gnu/plymouth/
# copy the default themes
cp -a /lib/plymouth/themes/details ${DESTDIR}/lib/plymouth/themes/
TEXT_THEME=$(readlink -f /lib/plymouth/themes/text.plymouth)
if [ -e "$TEXT_THEME" ]; then
ln -s $TEXT_THEME ${DESTDIR}/lib/plymouth/themes/text.plymouth
cp -a $(dirname $TEXT_THEME) ${DESTDIR}/lib/plymouth/themes/
MODULE=$(grep "ModuleName *= *" ${TEXT_THEME} | sed 's/ModuleName *= *//')
copy_exec /lib/x86_64-linux-gnu/plymouth/$MODULE.so /lib/x86_64-linux-gnu/plymouth/
fi
THEME=$(readlink -f /lib/plymouth/themes/default.plymouth)
if [ -e "$THEME" ]; then
ln -s $THEME ${DESTDIR}/lib/plymouth/themes/default.plymouth
cp -a $(dirname $THEME) ${DESTDIR}/lib/plymouth/themes/
MODULE=$(grep "ModuleName *= *" ${THEME} | sed 's/ModuleName *= *//')
copy_exec /lib/x86_64-linux-gnu/plymouth/$MODULE.so /lib/x86_64-linux-gnu/plymouth/
# if we have a non-text theme, make sure we copy all the support libs
copy_exec /lib/x86_64-linux-gnu/plymouth/label.so /lib/x86_64-linux-gnu/plymouth/
# suppress a warning in glib (which the label control uses)
# about uid 0 by building a dummy NSS stack (LP #649917)
if ! grep -q '^root:' ${DESTDIR}/etc/passwd 2>/dev/null; then
echo 'root:x:0:0:root:/root:/bin/sh' >${DESTDIR}/etc/passwd
fi
echo 'passwd: files' >${DESTDIR}/etc/nsswitch.conf
for lib in /lib/x86_64-linux-gnu/libnss_files* /lib/libnss_files*
do
if [ -e "$lib" ]; then
copy_exec $lib /lib
fi
done
# output renderers
copy_exec /lib/x86_64-linux-gnu/plymouth/renderers/frame-buffer.so /lib/x86_64-linux-gnu/plymouth/renderers/
copy_exec /lib/x86_64-linux-gnu/plymouth/renderers/drm.so /lib/x86_64-linux-gnu/plymouth/renderers/
copy_exec /lib/x86_64-linux-gnu/plymouth/renderers/vga16fb.so /lib/x86_64-linux-gnu/plymouth/renderers/
cp /lib/plymouth/ubuntu_logo.png ${DESTDIR}/lib/plymouth
# and copy the font support files needed in order to actually display
# any text
mkdir -p ${DESTDIR}/usr/share/fonts/truetype/dejavu
mkdir -p ${DESTDIR}/etc/fonts/conf.d
cp /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf ${DESTDIR}/usr/share/fonts/truetype/dejavu/
cp /etc/fonts/fonts.conf ${DESTDIR}/etc/fonts/fonts.conf
cp -L /etc/fonts/conf.d/60-latin.conf ${DESTDIR}/etc/fonts/conf.d
fi
|