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 4f06e35..6756355 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