On 1/4/21 3:24 PM, Kairui Song wrote:
systemctl is-failed will not work after dracut isolated to the
emergency
target, so this judgement is invalid. And the restart is basically
harmless, so just revert this commit.
This reverts commit ad6a93b00d85a85702bb59d15ecc81a5382a9a31.
---
kdump-lib-initramfs.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/kdump-lib-initramfs.sh b/kdump-lib-initramfs.sh
index e766f95..a60a52a 100755
--- a/kdump-lib-initramfs.sh
+++ b/kdump-lib-initramfs.sh
@@ -226,8 +226,7 @@ dump_to_rootfs()
{
dinfo "Trying to bring up rootfs device"
- systemctl is-failed dracut-initqueue || systemctl start dracut-initqueue
-
+ systemctl start dracut-initqueue
dinfo "Waiting for rootfs mount, will timeout after 90 seconds"
systemctl start sysroot.mount
Acked-by: Pingfan Liu <piliu(a)redhat.com>