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

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Reply via email to