Skip to content

hooks/shutdown: copy /. instead of /

nl6720 requested to merge nl6720/mkinitcpio:fix-copy-in-shutdown into master

cp will fail to copy / if the target directory already exists. The produced error is not very helpful:

cp: cannot create directory '/run/initramfs/': No such file or directory

Instead of copying /, copy /. to avoid the issue.

Fixes #104 (closed), Fixes https://bugs.archlinux.org/task/74534

Merge request reports

Loading