[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#827665: systemd goes into timeout while waiting for local-fs.target



Control: reassign 856590 live-config-systemd
Control: forcemerge -1 856590
Control: severity -1 grave


On Thu, 12 Jan 2017 17:54:40 +0100 Raphael Hertzog <hertzog@debian.org>
wrote:
> Hello,
> 
> On Sun, 19 Jun 2016, Eugenio 'g7' Paolantonio wrote:
> > The After=local-fs.target rule introduced in commit 63ab809 made systemd
> > go in timeout while waiting for the local-fs target to be reached.
> > 
> > This is due to the fact that the Before= rule in the live-config unit
> > prevents the startup of udev.
> 
> This explanation alone is not sufficient...
> 
> If they are executed in this order then all requirements
> are met:
> local-fs.target -> live-config.service -> udev.service
> 
> So what other requirements are there that make this ordering
> impossible?
> 
> Are there mount points that can only be mounted if udev has been run?

I can answer this question: Yes, udevd needs to run and tag the block
devices once they are available with TAGS=:systemd:.
systemd will react to that and start fsck and mount the device.
So this bug shows up once you have a non-/ partition, like /var in
/etc/fstab, which is hooked up in local-fs.target, as the
local-fs.target will timeout waiting for the device and you're dropped
into the rescue shell.

As the commit message doesn't contain a proper explanation why it was
added in the first place, I would suggest reverting that change, as the
alternative is a clearly broken system.

Looping Michal in, maybe he knows the details why this was added in the
first place:

commit 51b06113785f19bdf60a3a9fd383d11c252d4d6d
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date:   Tue Aug 13 22:03:52 2013 +0200

    Improve boot order in systemd service file before getting a final
(upstream) solution, thanks to Michael Stapelberg <stapelberg@debian.org>.

https://anonscm.debian.org/cgit/debian-live/live-config.git/commit/?id=51b06113785f19bdf60a3a9fd383d11c252d4d6d

Cheers,
Michael

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

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: