Bug#897572: [PATCH] Copy fontconfig .uuid files to avoid getrandom hang in early boot

2018-05-14 Thread Ben Caradoc-Davies

On 14/05/18 20:24, Laurent Bigonville wrote:
I was more thinking about regenerating the cache with fc-cache in the 
initramfs (or using uuidgen to generate the .uuid files) instead of 
copying them from the live system, I'll try to figure that out.


Thanks very much, Laurent. Confirmed fixed in 0.9.3-3 (with fontconfig 
2.13.0-5, your fix there also noted). I can also confirm that the 
generated initramfs contains the expected .uuid files. With these 
changes, plymouth passphrase screen is shown without delay.


Kind regards,

--
Ben Caradoc-Davies 
Director
Transient Software Limited 
New Zealand



Bug#897572: [PATCH] Copy fontconfig .uuid files to avoid getrandom hang in early boot

2018-05-14 Thread Laurent Bigonville
On Thu, 10 May 2018 11:53:37 +1200 Ben Caradoc-Davies  
wrote:

> Fixes:
> Bug#897572: getrandom hang in early boot prevents plymouth passphrase 
entry

> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=897572
>
> Signed-off-by: Ben Caradoc-Davies 
> ---
> debian/local/plymouth.hook | 4 
> 1 file changed, 4 insertions(+)
>
> diff --git a/debian/local/plymouth.hook b/debian/local/plymouth.hook
> index fe44511..bde2d2c 100644
> --- a/debian/local/plymouth.hook
> +++ b/debian/local/plymouth.hook
> @@ -99,12 +99,16 @@ case "${THEME_NAME}" in
> 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"
> + cp -a /usr/share/fonts/truetype/dejavu/.uuid 
"${DESTDIR}/usr/share/fonts/truetype/dejavu"

> else
> # wheezy
> mkdir -p "${DESTDIR}/usr/share/fonts/truetype/ttf-dejavu"
> cp -a /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf 
"${DESTDIR}/usr/share/fonts/truetype/ttf-dejavu"
> cp -a /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 
"${DESTDIR}/usr/share/fonts/truetype/ttf-dejavu"
> + cp -a /usr/share/fonts/truetype/ttf-dejavu/.uuid 
"${DESTDIR}/usr/share/fonts/truetype/ttf-dejavu"

> fi
> + cp -a /usr/share/fonts/truetype/.uuid 
"${DESTDIR}/usr/share/fonts/truetype"

> + cp -a /usr/share/fonts/.uuid "${DESTDIR}/usr/share/fonts"
>
> # pango
> if ls /usr/lib/@DEB_HOST_MULTIARCH@/pango/1* > /dev/null 2>&1

Thanks for the patch.

I was more thinking about regenerating the cache with fc-cache in the 
initramfs (or using uuidgen to generate the .uuid files) instead of 
copying them from the live system, I'll try to figure that out.




Bug#897572: [PATCH] Copy fontconfig .uuid files to avoid getrandom hang in early boot

2018-05-09 Thread Ben Caradoc-Davies
Fixes:
Bug#897572: getrandom hang in early boot prevents plymouth passphrase entry
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=897572

Signed-off-by: Ben Caradoc-Davies 
---
 debian/local/plymouth.hook | 4 
 1 file changed, 4 insertions(+)

diff --git a/debian/local/plymouth.hook b/debian/local/plymouth.hook
index fe44511..bde2d2c 100644
--- a/debian/local/plymouth.hook
+++ b/debian/local/plymouth.hook
@@ -99,12 +99,16 @@ case "${THEME_NAME}" in
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"
+   cp -a /usr/share/fonts/truetype/dejavu/.uuid 
"${DESTDIR}/usr/share/fonts/truetype/dejavu"
else
# wheezy
mkdir -p 
"${DESTDIR}/usr/share/fonts/truetype/ttf-dejavu"
cp -a 
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf 
"${DESTDIR}/usr/share/fonts/truetype/ttf-dejavu"
cp -a 
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf  
"${DESTDIR}/usr/share/fonts/truetype/ttf-dejavu"
+   cp -a /usr/share/fonts/truetype/ttf-dejavu/.uuid 
"${DESTDIR}/usr/share/fonts/truetype/ttf-dejavu"
fi
+   cp -a /usr/share/fonts/truetype/.uuid 
"${DESTDIR}/usr/share/fonts/truetype"
+   cp -a /usr/share/fonts/.uuid "${DESTDIR}/usr/share/fonts"
 
# pango
if ls /usr/lib/@DEB_HOST_MULTIARCH@/pango/1* > /dev/null 2>&1
-- 
Ben Caradoc-Davies 
Director
Transient Software Limited 
New Zealand