Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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 David Thurstenson (thurstylark) - Wednesday, 27 April 2022, 21:43 GMT
Task Type Bug Report
Category Arch Projects
Status Assigned
Assigned To Giancarlo Razzolini (grazzolini)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 11
Private No

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

Loading...