[linux-lvm] systemd generator fails if lvmconfig does not find a value

Peter Rajnoha prajnoha at redhat.com
Thu Jan 3 11:42:08 UTC 2019


On 12/23/18 7:57 PM, Bastian Blank wrote:
> Moin
> 
> The systemd generator in 2.03.01 fails if the config does not yet
> contain the variables it tries to read via lvmconfig.  It aborts as
> lvmconfig exits with exit value 5.
> 
> | % /sbin/lvmconfig config/checks te/t 2>/dev/null; echo $? 
> | checks=1
> | 5
> 
> As generators should not fail, ignoring lvmconfig problems might be the
> best option.  The fallback of just generating services is safe.

We could probably use "lvmconfig --type full" here instead. The "--type
full" will get the actual setting if it exists and if not, it'll take
the default value. And yes, even if that one fails, we should still
generate the services... Thanks for noticing! I'll patch this.

-- 
Peter




More information about the linux-lvm mailing list