You are not logged in.
I am noticing that one of my systems hangs for 90s upon shutdown indicating that a stop job is hung for mkinitcpio-generate-shutdown-ramfs.service. What does this service physically do?
% cat /usr/lib/systemd/system/shutdown.target.wants/mkinitcpio-generate-shutdown-ramfs.service
[Unit]
Description=Generate shutdown-ramfs
DefaultDependencies=no
Before=shutdown.target
ConditionFileIsExecutable=!/run/initramfs/shutdown
[Service]
Type=oneshot
# /tmp could be umounted at this point
# use /run as temporary directory
Environment=TMPDIR=/run
ExecStart=/usr/bin/mkinitcpio -A sd-shutdown -k none -c /dev/null -d /run/initramfs
If I parse the options in ExecStart through the mkinitcpio man page I am still unclear why it needs to run in order to power down. I cannot actually locate the 'sd-shutdown' hook that is called... the most similar I found is /usr/lib/initcpio/hooks/shutdown which seems to remove /usr/lib/modules and cp files from / to /run/initramfs. Thanks for the insights.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Online
sd-shutdown is on /usr/lib/initcpio/install, the only things that is done is copying systemd-shutdown to "deinitramfs". So all mounted-fs/loops/dm-devices/swaps are propertly umounted/detached if anything is pending after switch_root.
Offline
I have the same issue.
Were you able to solve it?
Offline
I have the exact same issue with one of the six Arch machines in my house/home office.
Offline
No, still experiencing the delay on most but not all shutdowns.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Online
same here. have anyone tried to mask this service?
core i5 4590, x86_64, nvidia 970
Offline