Bug 151285 - Using update-altenatives doesn't work
Using update-altenatives doesn't work
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: fedora-usermgmt (Show other bugs)
3
All Linux
medium Severity medium
: ---
: ---
Assigned To: Enrico Scholz
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-16 12:56 EST by Mark McLoughlin
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-03-18 03:23:46 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
fedora-usermgmt-altenatives.diff (916 bytes, patch)
2005-03-16 12:57 EST, Mark McLoughlin
no flags Details | Diff

  None (edit)
Description Mark McLoughlin 2005-03-16 12:56:52 EST
If you try to use the "predictable user-creation" part of fedora-usermgmt by:

/usr/sbin/update-alternatives --set fedora-usermgmt \
     /etc/fedora/usermgmt/scripts.shadow-utils

it doesn't seem to change the behaviour at all because the wrapper script
doesn't use the alternatives indirection.

Attaching a patch which fixes it for me.
Comment 1 Mark McLoughlin 2005-03-16 12:57:37 EST
Created attachment 112053 [details]
fedora-usermgmt-altenatives.diff
Comment 2 Enrico Scholz 2005-03-16 13:45:33 EST
mmh... you should have a symlink

| /etc/fedora/usermgmt/scripts -> /etc/alternatives/fedora-usermgmt


which is created by the

| /usr/sbin/update-alternatives --install /etc/fedora/usermgmt/scripts fedora-usermgmt /etc/fedora/usermgmt/scripts.legacy 60

%post scriptlet of the -shadow-utils subpackage.


So the tools are right in looking for the script at
'/etc/fedora/usermgmt/scripts'. Do you have a reproducible example
which demonstrates your problems?
Comment 3 Mark McLoughlin 2005-03-18 03:23:46 EST
Okay, apologies - this must have somehow been my mistake. It works fine just as
you describe.

Note You need to log in before you can comment on or make changes to this bug.