Ubuntu Core custom Plymouth theme

I’m not sure if this is the right place but I’m trying to create a custom Plymouth theme for Ubuntu Core and I am finding the documentation a little confusing.

So far I have created a custom model file and built a working image. Then I have added a vendor logo to the /splash directory and this works but I need to customise this further.

I have cloned core-splash, customised it and build the gadget snap.

The confusing things I’d like to understand are:

  1. This is a gadget snap but when I add it to my model I get an error saying only one gadget is allowed.
  2. Adding as a normal snap seems to do nothing - I see the old splash sccreen
  3. The core-splash file paths seem to be completely different to the documentation, particularly the organize section in snapcraft.yaml and the ThemeDir in plymouthd.conf
  4. What is the $GADGET variable supposed to be as I cannot find it documented anywhere?
  5. The docs say use vendor.plymouth but the example code uses ubuntu-core.plymouth

Any help with this is appreciated!

You should not need to do that, AFAIK all the bits in there are nowadays part of the core snap… (@abeato may correct me)

No, this snap only contains the plymouth binary, all helper scripts and the default fallback Ubuntu theme, it is not a gadget…

Yes, as the README says, this snap is to be consumed by the core snap at build time, you should not add (or use) it anywhere (see above)

This should have better been written as <gadget> it only means to represent the top level of the snap…

If you look at the code of the core-splash snap you will see that to will use vendor.plymouth if that exists, else it uses ubuntu-core.plymouth

@ogra Thank you for your reply. So if I want to customise the Plymouth theme do you have any pointers to how I do it? I have the new theme - I just don’t know where to put it.