Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 517514 - sys-fs/lvm2: blk-availability.service uses /usr/bin/true instead of /bin/true
Summary: sys-fs/lvm2: blk-availability.service uses /usr/bin/true instead of /bin/true
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-19 16:15 UTC by Markos Chandras (RETIRED)
Modified: 2014-07-30 17:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markos Chandras (RETIRED) gentoo-dev 2014-07-19 16:15:14 UTC
The service has this:

[Service]
Type=oneshot
ExecStart=/usr/bin/true
ExecStop=/sbin/blkdeactivate -u -l wholevg
RemainAfterExit=yes

Resulting to failures during start up because in Gentoo it should really use 
/bin/true instead of /usr/bin/true.

Better yet if you add some logic in the ebuild (maybe in post_* functions so it can affect binary packages too) which detects where 'true' is installed and patch the service file. That will make things easier when Gentoo moves from /{bin,sbin} to /usr/{bin,sbin} like other distros do. But well, that can happen later on.

The patch is trivial but rather important to make lvm2 useful in systemd. Please consider fixing it.

I will wait a few days and then I will fix it myself because I need to patch all the systemd+lvm2 servers manually to make that work with Gentoo.
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2014-07-29 08:27:31 UTC
ping? Is the proposed solution (/usr/bin/true -> /bin/true) ok with you?
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2014-07-30 17:24:23 UTC
(no revision bump because mirrors didn't have time to sync in-between)

  30 Jul 2014; Samuli Suominen <ssuominen@gentoo.org> lvm2-2.02.108.ebuild:
  Use /bin/true instead of /usr/bin/true in
  scripts/blk_availability_systemd_red_hat.service.in because Gentoo doesn't
  have the so called usr -merge wrt #517514 by Markos Chandras. Enable
  "use_lvmetad = 1" by default in lvm.conf with USE="systemd lvmetad -device-
  mapper-only" wrt #514196 by Pacho Ramos.

*lvm2-2.02.108 (30 Jul 2014)

  30 Jul 2014; Samuli Suominen <ssuominen@gentoo.org>
  +files/lvm2-2.02.108-example.conf.in.patch,
  +files/lvm2-2.02.108-static-pkgconfig-libs.patch, +lvm2-2.02.108.ebuild:
  Version bump. Fix configure logic for cache since it's tied to thin-
  provisioning-tools.