Revert "Don's try to restart dracut-initqueue if it's already failed"

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 ad6a93b00d.

Signed-off-by: Kairui Song <kasong@redhat.com>
Acked-by: Pingfan Liu <piliu@redhat.com>
This commit is contained in:
Kairui Song 2021-01-04 15:24:29 +08:00
parent 0843c70672
commit 7f1f8f229f

View File

@ -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