[systemd-devel] GPT generator errors

Tom Gundersen teg at jklm.no
Wed Sep 18 09:46:12 PDT 2013


On Wed, Sep 18, 2013 at 6:26 PM, Colin Guthrie <gmane at colin.guthr.ie> wrote:
> Hi,
>
> I seem to encounter an error on my system with the GPT generator.
>
> It complains that my /dev/block/8:2 device is missing. When the system
> fully boots this symlink exists happily:
>
> [colin at jimmy ~]$ ls -l /dev/block/8:2
> lrwxrwxrwx 1 root root 7 Sep 18 12:26 /dev/block/8:2 -> ../sda2
>
> Doing a daemon reload on systemd works fine and the generator then runs
> successfully.
>
> This is for my / partition with a PARTUUID of
> e571c4e9-3165-40d2-a5a7-da5375b05c91
>
> All my non-EFI partitions are using the GUID code of:
> Partition GUID code: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 (Microsoft
> basic data) which is likely wrong (I guess I should be using
> 933ac7e12eb44f13b8440e14e2aef915 for my /home?) but it shouldn't be
> affecting things here I guess.
>
> Anyway, this error appears to lead to a ~2min delay in booting.
>
> Could there be some kind of race between the gpt-generator and udev
> doing it's device enumeration and symlink creation that's tripping
> things up here?
>
> If I kill the generator, the boot seems to work fine without any delays.
>
> Any thoughts? Isn't it inherently racy to run a generator that needs to
> access devices like this? I thought we were aiming towards
> hotplug-friendly rather than the whole theoretical point in time where
> things are "ready"?

Hi Colin,

Seems you are spot-on in your analysis:
http://cgit.freedesktop.org/systemd/systemd/commit/?id=3db604b907323b8df0fc810216f6112056d26a02
(I assume you are observing this with a checkout prior to that fix?).

Cheers,

Tom


More information about the systemd-devel mailing list