autopkgtest-build-lxd failing with bionic

Iain Lane laney at
Fri Feb 16 11:52:05 UTC 2018

On Thu, Feb 15, 2018 at 09:55:47PM +0100, Martin Pitt wrote:
> Hello Iain, all,
> Iain Lane [2018-02-15 18:48 +0000]:
> > There's a patch attached here which fixes the problem for me. I'm not
> > sure if there's a better way to do this - basically it starts
> > and waits for it to become active, with a timeout.
> > Review appreciated.
> I wouldn't pick on any of these: is a sloppily defined
> shim for SysV init backwards compatibility, and may not ever get started (in
> fact, that's the goal ☺); and the container might not use networkd, so I
> wouldn't use s-n-wait-online either. I think querying

Interesting. I thought that it was the systemd way to say 'I am online
now' --- i.e. nm-online or systemd-networkd-wait-online, which is the
question I wanted to get a positive answer to. I can see that the SysV
implementation isn't great, but it's not clear to me that it was ill
defined for this case.

>   [ -n "$(ip route show to 0/0)" ]

This is better though, and works too. Please take a look at the attached
patch. Thanks! :-)


Iain Lane                                  [ iain at ]
Debian Developer                                   [ laney at ]
Ubuntu Developer                                   [ laney at ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lxd-Wait-until-we-have-a-default-route.patch
Type: text/x-diff
Size: 2894 bytes
Desc: not available
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <>

More information about the autopkgtest-devel mailing list