Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 732364 - sys-fs/lxcfs-4.0.3 fails to start properly using systemd
Summary: sys-fs/lxcfs-4.0.3 fails to start properly using systemd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Erik Mackdanz
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-12 17:33 UTC by Mattias Winther
Modified: 2020-07-13 07:16 UTC (History)
3 users (show)

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


Attachments
log output (lxcfs log output.txt,1.58 KB, text/plain)
2020-07-12 17:33 UTC, Mattias Winther
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mattias Winther 2020-07-12 17:33:01 UTC
Created attachment 649016 [details]
log output

After trying to start lxcfs manually, turns out it wasn't able to start or restart, two problems. First, the directory /var/lib/lxcfs didn't exist, so it couldn't use it as a mount point. I just did a mkdir as root, and it didn't seem to have a problem with ownership, but I don't know if there should be any modifications there.

Next, during attempt to restart, it tried to user /bin/fusermount rather than /usr/bin/fusermount. I added the /usr to the service file. I tried to remove the mount point to test, but it couldn't unmount the fs from that mount point when it didn't exist, but at least the binary seemed to do the error reporting, so I guess that is as close as I'll get without another error.
Comment 1 Joonas Niilola gentoo-dev 2020-07-13 06:00:45 UTC
Hmm yeah, with openrc a lot of these happen via the init.d script, 
  https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-fs/lxcfs/files/lxcfs-4.0.0.initd

I tried putting them to the ebuild initially but that proved to be flaky. I'll need to study systemd to replicate the init.d behaviour there...
Comment 2 Larry the Git Cow gentoo-dev 2020-07-13 07:16:15 UTC
The bug has been closed via the following commit(s):

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

commit cbde434758c938aa1452aa31818fcb3b8fd73245
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2020-07-13 06:17:59 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-07-13 07:15:59 +0000

    sys-fs/lxcfs: systemd related fixes, #732364
    
    Closes: https://bugs.gentoo.org/732364
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 sys-fs/lxcfs/files/lxcfs-4.0.0.service                 | 18 ++++++++++++++++++
 .../{lxcfs-4.0.4-r1.ebuild => lxcfs-4.0.4-r2.ebuild}   |  2 +-
 2 files changed, 19 insertions(+), 1 deletion(-)