]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-shutdown.service: do not unpack old initramfs on shutdown
authorHarald Hoyer <harald@redhat.com>
Thu, 31 May 2012 07:56:24 +0000 (09:56 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 31 May 2012 08:09:50 +0000 (10:09 +0200)
Do not unpack the initramfs, if the old initramfs still exists.

dracut-shutdown.service

index 4f06e350dde95209d7dd064d9e40b866fafc566a..675635591fa152e5e037ef57cb86cabd1b574c8f 100644 (file)
@@ -11,6 +11,7 @@ After=getty@tty1.service prefdm.service
 Before=reboot.service
 DefaultDependencies=no
 ConditionPathExists=/run/initramfs/.need_shutdown
+ConditionPathExists=!/run/initramfs/bin/sh
 
 [Service]
 ExecStart=/usr/lib/dracut/dracut-initramfs-restore