-
Notifications
You must be signed in to change notification settings - Fork 216
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
use -N instead of -n for useradd #1052
Conversation
Does this allow us to drop the |
And in that case, we should put the override in the RHEL 5 configs as part of this PR and drop the overrides everywhere else. |
I really hope that no one uses rhel5 config today. |
I'm not sure. The difference for those chroots would be: - '/usr/sbin/useradd -o -m -u {{chrootuid}} -g {{chrootgid}} -d {{chroothome}} {{chrootuser}}'
+ '/usr/sbin/useradd -o -m -u {{chrootuid}} -g {{chrootgid}} -d {{chroothome}} -N {{chrootuser}} Is it safe to use
They maintain their own configs, and typically also run an older Mock version |
Well, if |
@Conan-Kudo we discussed with @xsuchy today - and it seems that removing the Therefore we should either merge as-is (and do the config change later on) or wait. We are not yet ready to wrap a new |
@Conan-Kudo what do you think? |
n |
We should wait on this, then. It's not urgent to land, and I'd rather this be a complete change. |
I have no objections, @xsuchy would you mind updating this PR then so we have it prepared? |
-n is downstream patch in Fedora and RHEL now. It was used in past. Since RHEL6 the option -N is available. Let use it. But that means if you want to build for RHEL5 you have to alter config_opts['useradd'] and return back -n option. Resolves: rpm-software-management#1050
Updated. |
I would say you should probably fix the EL5 configs and add an override there, but I don't care that much. |
-n is downstream patch in Fedora and RHEL now. It was used in past. Since RHEL6 the option -N is available.
Let use it.
But that means if you want to build for RHEL5 you have to alter config_opts['useradd'] and return back -n option.
Resolves: #1050