Failed to start Generate shutdown-ramfs in the latest release (version 39)
In the latest release of the mkinitcpio, the mkinitcpio-generate-shutdown-ramfs.service had been hardened a bit (commit can be found here).
However, according to some users and myself (https://bbs.archlinux.org/viewtopic.php?id=295459), after installing the latest version of the mkinitcpio (39-1), an error message could be encountered during shutdown or reboot:Failed to start Generate shutdown-ramfs
.
And I refered to the systemd/mkinitcpio-generate-shutdown-ramfs.service
in this project:
ProtectSystem=strict
ReadWritePaths=/run/initramfs
ProtectHome=yes
ProtectHostname=yes
ProtectClock=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectKernelLogs=yes
ProtectControlGroups=yes
PrivateNetwork=yes
LockPersonality=yes
MemoryDenyWriteExecute=yes
I manually modified the following and the mkinitcpio-generate-shutdown-ramfs.service
could run without issue.
ProtectSystem=full
I guess the ProtectSystem=strict
would strict the mkinitcpio-generate-shutdown-ramfs.service
to run.