Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 684016

Summary: sys-fs/lvm2: USE=-udev still has `need udev` in OpenRC init script
Product: Gentoo Linux Reporter: Piotr Karbowski (RETIRED) <slashbeast>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED FIXED    
Severity: normal CC: cardoe
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Piotr Karbowski (RETIRED) gentoo-dev 2019-04-21 18:58:13 UTC
Hi,

It appears that lvm init script now have `need udev`. Even when built with USE=-udev. Here it complain that I have no udev init script at all.

Perhaps changing that to `after udev` or `use udev` would be better?
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2019-04-21 19:47:04 UTC
`use udev`/`after udev` wouldn't be strong enough I think.

If built with USE=udev, then trying to start lvm2 SHOULD start udev (and block until it's up).

That said, I don't see a generally valid case where users would be flipping between USE=udev/-udev, so making the init script be conditional (either sed/patch at instal or via conf.d) would probably be ok.
Comment 2 Piotr Karbowski (RETIRED) gentoo-dev 2019-05-08 20:28:07 UTC
Fixed in following commit

commit 26a0538c6aa1a45c47d3a8b38e55a11516184359
Author: Robin H. Johnson <robbat2@gentoo.org>
Date:   2019-05-07 12:16:10 -0700

    sys-fs/lvm2: better USE=-udev init support
    
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>