fix useradd in site-defaults.cfg
This commit is contained in:
parent
966d6ad94d
commit
84f0fe4780
@ -6,7 +6,7 @@
|
|||||||
Summary: Builds packages inside chroots
|
Summary: Builds packages inside chroots
|
||||||
Name: mock
|
Name: mock
|
||||||
Version: 2.2
|
Version: 2.2
|
||||||
Release: 2
|
Release: 3
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Source: https://github.com/rpm-software-management/mock/releases/download/mock-2.2-1/%{name}-%{version}.tar.gz
|
Source: https://github.com/rpm-software-management/mock/releases/download/mock-2.2-1/%{name}-%{version}.tar.gz
|
||||||
URL: https://github.com/rpm-software-management/mock/
|
URL: https://github.com/rpm-software-management/mock/
|
||||||
@ -148,6 +148,9 @@ install -p -m 0644 %{SOURCE1} %{buildroot}/etc/mock/site-defaults.cfg
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 06 2024 jinzhiguang <jinzhiguang@kylinos.cn> 2.2-3
|
||||||
|
- fix useradd in site-defaults.cfg
|
||||||
|
|
||||||
* Thu Nov 10 2022 xu_ping <xuping33@h-partners.com> 2.2-2
|
* Thu Nov 10 2022 xu_ping <xuping33@h-partners.com> 2.2-2
|
||||||
- fix source url
|
- fix source url
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@ config_opts['target_arch'] = '{{ target_arch }}'
|
|||||||
config_opts['use_bootstrap_container'] = False
|
config_opts['use_bootstrap_container'] = False
|
||||||
config_opts['dnf_disable_plugins'] = ['local', 'spacewalk']
|
config_opts['dnf_disable_plugins'] = ['local', 'spacewalk']
|
||||||
config_opts['use_nspawn'] = False
|
config_opts['use_nspawn'] = False
|
||||||
config_opts['useradd'] = '/usr/sbin/useradd -o -m -u %(uid)s -g %(gid)s -d %(home)s -N %(user)s'
|
config_opts['useradd'] = '/usr/sbin/useradd -o -m -u {{chrootuid}} -g {{chrootgid}} -d {{chroothome}} -N {{chrootuser}}'
|
||||||
|
|
||||||
config_opts['yum.conf'] = """
|
config_opts['yum.conf'] = """
|
||||||
[main]
|
[main]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user