#1067002 plymouth: Theme broken if config file is a symlink

Package:
plymouth
Source:
plymouth
Description:
boot animation, logger and I/O multiplexer
Submitter:
Markus Koller
Date:
2024-03-16 18:33:03 UTC
Severity:
normal
#1067002#5
Date:
2024-03-16 18:29:46 UTC
From:
To:
Dear Maintainer,

I used to have a symlink from /etc/plymouth/plymouthd.conf to my
dotfiles repository, which resulted in a broken theme (a gray screen
with three white dots).

At some point I realized that the initramfs hook is copying the symlink
itself, so I switched to a hardlink which resolved that issue.

The problem is in /usr/share/initramfs-tools/hooks/plymouth which uses
`cp -dRp` to copy certain files. Could that be changed to `cp -p`
perhaps? I noticed that `cp -R` will still create symlinks when used
with a single file, but recursion isn't necessary in these cases anyway.

I also saw some other hooks explicitly use `cp -L`.

Thanks,
Markus