Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 572304 - app-emulation/xen-tools-4.6.0-r6: var-lib-xenstored.mount has wrong Where=/var/lib/lib/xenstored
Summary: app-emulation/xen-tools-4.6.0-r6: var-lib-xenstored.mount has wrong Where=/va...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
: 615938 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-01-18 19:29 UTC by Jonas Jelten
Modified: 2017-05-02 09:03 UTC (History)
2 users (show)

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


Attachments
xen-tools-set-localstatedir.patch (xen-tools-localstatedir.patch,1.09 KB, patch)
2017-04-19 19:41 UTC, Florian Schmaus
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Jelten 2016-01-18 19:29:29 UTC
The systemd /usr/lib64/systemd/system/var-lib-xenstored.mount file contains the line:
Where=/var/lib/lib/xenstored

This will trigger the systemd error message in the journal:
var-lib-xenstored.mount: Where= setting doesn't match unit name. Refusing.

Reproducible: Always
Comment 1 Jonas Jelten 2016-01-18 19:34:39 UTC
Sorry, i used the wrong package:
The cor
Comment 2 George Diamantopoulos 2017-01-12 21:13:06 UTC
This is still present with xen-tools-4.8.0...

Can you please elaborate? What do you mean by "I used the wrong package"?
Comment 3 Jonas Jelten 2017-01-12 23:15:36 UTC
I used the wrong packet name in the bug description first, then changed it, and my draft in the comment here was submitted when i edited the title. Which is why the message was cut off.
Comment 4 George Diamantopoulos 2017-01-18 21:46:14 UTC
A quick, dirty fix of unknown further repurcussions (i.e. use at your own risk) would be to add the following line in the ebuild's prepare stage:

        sed -i -e   "/XEN_LIB_STORED=/s/\$localstatedir/\/var/g" \
                m4/paths.m4 configure tools/configure || die

There's a similar line for XEN_LOCK_DIR, I added this code after that.
Comment 5 Florian Schmaus gentoo-dev 2017-04-18 12:51:34 UTC
*** Bug 615938 has been marked as a duplicate of this bug. ***
Comment 6 Florian Schmaus gentoo-dev 2017-04-19 19:41:21 UTC
Created attachment 470434 [details, diff]
xen-tools-set-localstatedir.patch

I do recommend instead setting localstatedir to /var (instead of econf's default /var/lib). See attached patch.
Comment 7 Yixun Lan archtester gentoo-dev 2017-05-02 09:03:36 UTC
fixed at app-emulation/xen-tools-4.8.1

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19210f286efe1cfbc6fd71bbe06782b61f8ffa14