Bug#931267: times out and drops into useless emergency shell with fsck still ongoing

Michael Biebl biebl at debian.org
Mon Jul 1 13:14:26 BST 2019


Hi Steve,

with your additional information about the faulty fstab entry,
I had another look.
a/
I first tried with a non-existing device. I also made sure the
concurrently running fsck takes longer then 90s.

The result is:
https://people.debian.org/~biebl/bug931267/boot-missing-device.mp4

systemd will indeed start the emergency shell after 90s, although the
fsckd process is still ongoing and clobbers the output of the login prompt.

Once the fsck is done, simply hitting enter one can log in without problems.

b/
Next I tried with a faulty mount point where the device exists but the
mount options are non-sense, so will trigger a mount failure.
The emergency shell is immediately started while fsck is still ongoing.
See
https://people.debian.org/~biebl/bug931267/boot-failing-mount.mp4

I guess this is basically what happened in your case.
The login prompt was again still usable.

Given this, I'm inclined to downgrade the severity.

I'm not entirely sure how to fix this though.
Should systemd delay the start of the sulogin prompt until all fsck
processes have finished? You can't interact with the system for a
potentially very long time (the same way basically as is the case now).
The only thing you'd gain is that the login prompt in such a case
doesn't look clobbered.




-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20190701/8df493a9/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list