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

Bug#778327: live-build: build fails in empty directory



On 13/02/2015 15:53, Michal Suchanek wrote:
> Man page says:
>
>        lb_build(1)
>                   alias for all stages
>
> lb build says:
>
> [2015-02-13 15:12:21] lb build
> W: No config/ directory; using defaults for all options
> P: live-build 4.0.5
>
> This is clearly not true.
>
> lb config && lb build
>
> produces an image but
>
> lb build
>
> does not.

Firstly, the man pages are very much out of date. I have gone a long way
to fixing this in bug #774730, and in one or two additional misc patches
here and there, none of which has been adopted into the git repo yet,
never mind an official version.

The manual [1] does clearly state to use lb config before lb build, but
with that said, my impression from my recent work on the code base was
that in this situation build would automatically run config to generate
a config, and I can confirm having actually tried it now that this is
not what is happening. It is certainly not ideal that build is just
pushing on ahead and crashing in the middle of the chroot_hooks script,
so this needs looking into. Either a check for config directory
existence needs adding to chroot_hooks, or whatever is preventing config
from being auto created needs fixing.

[1] http://live.debian.net/manual/4.x/html/live-manual.en.html


Reply to: