Bug 1544951 - rhel5 fails on usermod command
Summary: rhel5 fails on usermod command
Keywords:
Status: CLOSED DUPLICATE of bug 1535328
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: 27
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1554957
TreeView+ depends on / blocked
 
Reported: 2018-02-13 20:24 UTC by thomas.swan
Modified: 2018-03-13 23:52 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-14 11:51:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch to reorder options on usermod command (555 bytes, patch)
2018-02-13 20:24 UTC, thomas.swan
no flags Details | Diff

Description thomas.swan 2018-02-13 20:24:36 UTC
Created attachment 1395642 [details]
patch to reorder options on usermod command

Description of problem:
Once installed we receive a failed on command /usr/sbin/usermod --non-unique...
Reordering the command arguments resolves the issue.  Patch provided.

Version-Release number of selected component (if applicable):
mock-1.4.8-1.fc27.noarch

How reproducible:
Always

Steps to Reproduce:
1. mock -r epel-5-x86_64 --shell
2. mock -r epel-5-x86_64 --shell

Actual results:
failed

Expected results:
second attempt should give a shell in mock.  This applies to other commands
such as rebuild or install and is not limited to shell.

Additional info:
There appears to be a bug in a release of EL5's /usr/sbin/usermod command which fails if --non-unique is specified before the -u (uid) option to the command. Moving the --non-unique option to the end resolves the issue.

epel-5-x86_64.cfg:
config_opts['root'] = 'epel-5-x86_64'
config_opts['target_arch'] = 'x86_64'
config_opts['legal_host_arches'] = ('x86_64',)
config_opts['chroot_setup_cmd'] = 'install buildsys-build buildsys-macros'
config_opts['dist'] = 'el5'  # only useful for --resultdir variable subst
if 'macros' not in config_opts:  config_opts['macros'] = {}
config_opts['macros']['%__arch_install_post'] = '%{nil}'
config_opts['releasever'] = '5'
config_opts['use_nspawn'] = False

Comment 1 Miroslav Suchý 2018-02-14 11:51:48 UTC

*** This bug has been marked as a duplicate of bug 1535328 ***


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