From: Harald Hoyer Date: Thu, 31 May 2012 07:56:24 +0000 (+0200) Subject: dracut-shutdown.service: do not unpack old initramfs on shutdown X-Git-Tag: 019~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e04d02cc3a78a5e0d2c9a8721d8847ce14c31051;p=thirdparty%2Fdracut.git dracut-shutdown.service: do not unpack old initramfs on shutdown Do not unpack the initramfs, if the old initramfs still exists. --- diff --git a/dracut-shutdown.service b/dracut-shutdown.service index 4f06e350d..675635591 100644 --- a/dracut-shutdown.service +++ b/dracut-shutdown.service @@ -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