Plymouth font missing at boot

Archived topics about LMDE 1 and LMDE 2
Locked
Ring0Bearer

Plymouth font missing at boot

Post by Ring0Bearer »

In a whole-disk encrypted system, the only assessable partition at boot time is the /boot partition, all other(s) are encrypted. Plymouth cannot access the font and only displays rectangles (even when prompting or the passphrase). I have yet to discover how to have Plymouth look in /boot for the needed font; still looking.
Any suggestions?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
7052538

Re: Plymouth font missing at boot

Post by 7052538 »

Try this:

Create a /etc/initramfs-tools/hooks/plymouth-missing-fonts-fix file containing the following:

Code: Select all

    #!/bin/sh

    set -e

    PREREQ=""

    prereqs()
    {
        echo "${PREREQ}"
    }

    case "${1}" in
        prereqs)
            prereqs
            exit 0
            ;;
    esac

    . /usr/share/initramfs-tools/hook-functions

    mkdir -p "${DESTDIR}/usr/share/fonts/truetype/dejavu"

    cp -a /usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf "${DESTDIR}/usr/share/fonts/truetype/dejavu"
    cp -a /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf  "${DESTDIR}/usr/share/fonts/truetype/dejavu"
Make it executable:

$ sudo chmod a+x /etc/initramfs-tools/hooks/plymouth-missing-fonts-fix

And rebuild the initrd image:

$ sudo update-initramfs -u
-RF-

Re: Plymouth font missing at boot

Post by -RF- »

Hi,

I had the same problem and today I tried the solution and it worked. Thank you very much!

-RF-
Locked

Return to “LMDE Archive”