<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-08-23 15:43 GMT+02:00 Elvis Stansvik <span dir="ltr"><<a href="mailto:elvis.stansvik@orexplore.com" target="_blank">elvis.stansvik@orexplore.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>I'm getting that warning when running update-initramfs -u after having moved my theme to /usr/share/plymouth/themes from /lib/plymouth (location of themes changed in Ubuntu 16.04).<br><br></div>This is with plymouth 0.9.2 from Ubuntu packages, and the problem seems to be the same as:<br><br>    <a href="https://ubuntuforums.org/showthread.php?t=2322684" target="_blank">https://ubuntuforums.org/<wbr>showthread.php?t=2322684</a><br><br></div>But the workaround(s) described in that thread doesn't seem to work for me.<br><br></div>Looking at lsinitramfs /boot/initrd.img-4.4.0-31-<wbr>generic output I can confirm that the script.so module that my custom theme uses, and the custom theme itself, is not installed to the initramfs image. But I'm unsure how to debug further.<br><br></div><div>The theme worked fine when it was living in /lib under Ubuntu 15.10 (which had plymouth 0.9.0).<br><br></div>The warning looks strange to me (as if some sed line went wrong?).<br><br></div>Any tips/pointers are highly welcome, as we need this theme to work on our Ubuntu-based product.<br></div></div></div></blockquote><div><br></div><div>I found something which led me to what I think was the solution.<br><br></div><div>It was this line in scripts/<a href="http://plymouth-populate-initrd.in">plymouth-populate-initrd.in</a>:<br><br>PLYMOUTH_MODULE_NAME=$(grep "ModuleName *= *" ${PLYMOUTH_DATADIR}/plymouth/themes/${PLYMOUTH_THEME_NAME}/${PLYMOUTH_THEME_NAME}.plymouth | sed 's/ModuleName *= *//')<br><br></div><div>The script here seems to assume the name of the .plymouth file corresponds exactly to the name of the parent (theme) directory, which was not the case for my custom theme. I had<br><br></div><div>orexplore-plymouth-theme/orexplore.plymouth<br>orexplore-plymouth-theme/et.c.<br>orexplore-plymouth-theme/et.c.<br><br></div><div>If I just installed the theme as<br><br></div><div>orexplore/orexplore.plymouth<br></div><div>orexplore/et.c.<br></div><div>orexplore/et.c.<br><br></div><div>instead, I got rid of the warning and the theme now works. The theme and the script.so plugin end up in the initramfs properly.<br><br></div><div>I have no idea why it worked on Wily before, since the script looked the same in 0.9.0 from the looks of it.<br><br></div><div>Elvis<br><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><br></div>Thanks in advance,<br></div>Elvis Stansvik<br></div>
</blockquote></div><br></div></div>