New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ceph.spec.in: /var/run/ceph fixes #5126
Conversation
hmm, not as simple as I thought - see https://en.opensuse.org/openSUSE:Systemd_packaging_guidelines#Creating_files_.2F_subdirectories_in_.2Fvar.2Frun_and_.2Frun |
@@ -584,7 +585,9 @@ mv $RPM_BUILD_ROOT/sbin/mount.fuse.ceph $RPM_BUILD_ROOT/usr/sbin/mount.fuse.ceph | |||
|
|||
#set up placeholder directories | |||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ceph | |||
%if ! 0%{?_with_systemd} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer you added a sysVinit variable to the spec file.
(This is some thing I have been thinking of doing we will see what ken thinks of this idea.)
We will also need to call |
@dachary The ubuntu make check bot failure says:
|
@smithfarm I'll take a look, thanks for the ping |
Imagine, I even vaguely remember reading about the double |
So it sounds like I need to change the conditional in this case. |
I guess so - dropping this commit, too. |
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Modified As for the
or I'm thinking this
would be even more straightforward? |
/var/run/ceph should only be installed on Fedora, RH/CentOS, and all supported SUSE distros that do not have systemd (e.g. SLE11-SP3). Signed-off-by: Nathan Cutler <ncutler@suse.com>
@ktdreyer ping, fixed the conditional |
Looks good to me - @BRANTO1 care to review? |
Sure, looks good to me, you can consider this
|
ceph.spec.in: /var/run/ceph fixes Reviewed-by: Ken Dreyer <kdreyer@redhat.com> Reviewed-by: Boris Ranto <branto@redhat.com>
On systemd distros we should not be creating /var/run/ceph at all because: (1)
/var/run
is symlinked or bind mounted to/run
, and (2)/run
is tmpfs (re-created at every boot).See https://lists.fedoraproject.org/pipermail/devel/2011-March/150031.html
Plus some related specfile cleanups.
http://tracker.ceph.com/issues/12201 Fixes: #12201
Signed-off-by: Nathan Cutler ncutler@suse.com