[opensuse-packaging] pwdutils?
In ceph we have to create the "ceph" user/group if it doesn't exist. We are doing this in the %pre scriptlet of the ceph-common package. I followed the instructions at https://en.opensuse.org/openSUSE:Packaging_guidelines#Users_and_Groups but today I realized that, although the instructions say to do: Requires(pre): pwdutils There is no such package . . . ? The useradd and groupadd binaries are in the package "shadow" so I'm wondering if it shouldn't say "Requires(pre): shadow" Thanks, Nathan -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
16.04.2016 18:26, Nathan Cutler пишет:
In ceph we have to create the "ceph" user/group if it doesn't exist. We are doing this in the %pre scriptlet of the ceph-common package.
I followed the instructions at https://en.opensuse.org/openSUSE:Packaging_guidelines#Users_and_Groups but today I realized that, although the instructions say to do:
Requires(pre): pwdutils
There is no such package . . . ? The useradd and groupadd binaries are in the package "shadow" so I'm wondering if it shouldn't say "Requires(pre): shadow"
shadow provides pwdutils. rpm -q --watprovides pwdutils zypper search --provides -x pwdutils -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On samedi, 16 avril 2016 19.08:56 h CEST Andrei Borzenkov wrote:
16.04.2016 18:26, Nathan Cutler пишет:
In ceph we have to create the "ceph" user/group if it doesn't exist. We are doing this in the %pre scriptlet of the ceph-common package.
I followed the instructions at https://en.opensuse.org/openSUSE:Packaging_guidelines#Users_and_Groups but today I realized that, although the instructions say to do:
Requires(pre): pwdutils
There is no such package . . . ? The useradd and groupadd binaries are in the package "shadow" so I'm wondering if it shouldn't say "Requires(pre): shadow"
shadow provides pwdutils.
rpm -q --watprovides pwdutils zypper search --provides -x pwdutils
If I remember correctly some conference and talk I've seen, (but as it's already a few months old) to be on the safe side of ceph, the user/group ceph should always have the same uid/gid accross the whole cluster, no ? If they are created dynamically the uid/gid will vary. Is this requirement no more needed in newer ceph ? -- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch openSUSE Member, fsfe fellowship GPG KEY : D5C9B751C4653227 irc: tigerfoot -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
shadow provides pwdutils.
OK, but if backward compatibility with very old versions of SUSE is not required, then "Requires(pre): shadow" would seem to be the better choice. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
zypper search --provides -x pwdutils
# zypper se --provides -x librbd1 Unknown option '-x' What does the -x option do? I guess it requires a newer zypper? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
sø., 17.04.2016 kl. 18.39 +0200, skrev Nathan Cutler:
zypper search --provides -x pwdutils
# zypper se --provides -x librbd1 Unknown option '-x'
What does the -x option do? I guess it requires a newer zypper?
Yes its fairly new (with older versions you have to use the full string).
From zypper help search
-x, --match-exact Searches for an exact match of the search strings. /B -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
You can also use
zypper wp 'packagename' zypper what-provides 'packagename'
It is obsolete as it's superseded by
zypper se --provides --match-exact
Sebastian On 04/17/2016 06:39 PM, Nathan Cutler wrote:
zypper search --provides -x pwdutils # zypper se --provides -x librbd1 Unknown option '-x'
What does the -x option do? I guess it requires a newer zypper?
-- python programming - mail server - photo - video - https://sebix.at cryptographic key at https://sebix.at/DC9B463B.asc and on public keyservers
participants (5)
-
Andrei Borzenkov
-
Bjørn Lie
-
Bruno Friedmann
-
Nathan Cutler
-
Sebastian