FS#74534 - [mkinitcpio] shutdown hook copy
Attached to Project:
Arch Linux
Opened by Simon Perry (pezz) - Friday, 22 April 2022, 04:25 GMT
Last edited by Toolybird (Toolybird) - Thursday, 01 December 2022, 19:47 GMT
Opened by Simon Perry (pezz) - Friday, 22 April 2022, 04:25 GMT
Last edited by Toolybird (Toolybird) - Thursday, 01 December 2022, 19:47 GMT
|
Details
Description:
Not sure what has changed to trigger this, but it seems the shutdown hook is running before tmpfiles has created /run/initramfs and there's an error with the cp command. Additional info: * package version(s): mkinitcpio 31-2 Steps to reproduce: I added some echo commands to see what was doing this, and it appears to be the cp in /usr/lib/initcpio/hooks/shutdown: run_cleanuphook() { echo "run_cleanuphook" rm -rf /usr/lib/modules cp -ax / /run/initramfs echo "end run_cleanuphook" } On the console during boot: run_cleanuphook cp: cannot create directory '/run/initramfs/': No such file or directory end run_cleanuphook Advice or a fix appreciated. Cheers. |
This task depends upon
Closed by Toolybird (Toolybird)
Thursday, 01 December 2022, 19:47 GMT
Reason for closing: Fixed
Additional comments about closing: See comments
Thursday, 01 December 2022, 19:47 GMT
Reason for closing: Fixed
Additional comments about closing: See comments
Is there any reason why you are still using it?
Beside that it doesn't make sense to ship broken hook. Either fix or remove it.
BTW: This ticket has more votes than any other open mkinitcpio bug (only few tickets had more in project history) so perhaps people see some value in this hook.