You are not logged in.

#1 2016-05-08 13:07:54

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Hang on mkinitcpio-generate-shutdown-ramfs.service ... what does it do

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 packagesZsh and other configs

Offline

#2 2016-05-09 00:17:04

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: Hang on mkinitcpio-generate-shutdown-ramfs.service ... what does it do

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

#3 2016-05-11 08:46:42

LiranV
Member
Registered: 2012-02-27
Posts: 57

Re: Hang on mkinitcpio-generate-shutdown-ramfs.service ... what does it do

I have the same issue.
Were you able to solve it?

Offline

#4 2016-05-11 09:21:14

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: Hang on mkinitcpio-generate-shutdown-ramfs.service ... what does it do

I have the exact same issue with one of the six Arch machines in my house/home office.

Offline

#5 2016-05-11 11:14:28

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Hang on mkinitcpio-generate-shutdown-ramfs.service ... what does it do

No, still experiencing the delay on most but not all shutdowns.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2016-05-12 08:50:57

marvn
Member
From: Prague
Registered: 2010-01-05
Posts: 84

Re: Hang on mkinitcpio-generate-shutdown-ramfs.service ... what does it do

same here. have anyone tried to mask this service?


core i5 4590, x86_64, nvidia 970

Offline

Board footer

Powered by FluxBB