Commit Graph

14 Commits

Author SHA256 Message Date
Thorsten Kukuk
7672d970fc - Use /bin/bash for sysusers-generate-pre
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=49
2021-07-15 06:47:00 +00:00
Thorsten Kukuk
e4b4911129 Accepting request 903094 from home:dancermak:branches:Base:System
Remove usage of grep from sysusers-generate-pre

OBS-URL: https://build.opensuse.org/request/show/903094
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=48
2021-07-09 12:08:33 +00:00
Thorsten Kukuk
1d4aa7fd58 Accepting request 898111 from home:kukuk:container
- Support systemd-sysusers --replace=/usr/lib/sysusers.d/ option
- sysusers-generate-pre: only use first argument for grep
- sysusers2shadow.sh: use "run" prefix for systemd-sysusers call
- macros.sysusers: fix typo

OBS-URL: https://build.opensuse.org/request/show/898111
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=44
2021-06-07 13:14:59 +00:00
Thorsten Kukuk
c81af58db0 Accepting request 871208 from home:kukuk:etc
- Use systemd-sysusers only if /proc is mounted, don't require it
- Set --replace option for systemd-sysusers

OBS-URL: https://build.opensuse.org/request/show/871208
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=40
2021-02-11 12:54:07 +00:00
Thorsten Kukuk
73d3e7c0eb Accepting request 835782 from home:favogt:fixnobody
- Avoid useless use of cat
- Simplify %sysusers_requires
- Drop shebang, rpm passes it to /bin/sh itself

OBS-URL: https://build.opensuse.org/request/show/835782
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=30
2020-09-22 08:24:31 +00:00
Thorsten Kukuk
54305a4169 Accepting request 786819 from home:favogt:nobash
- Clean up sysusers2shadow and make it use only /bin/sh
- Don't let busybox adduser create the home directory, it breaks
  permissions of e.g. /sbin (home of daemon)
- Use only /bin/sh in sysusers-generate-pre and the generated code

OBS-URL: https://build.opensuse.org/request/show/786819
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=23
2020-03-20 11:31:21 +00:00
Thorsten Kukuk
81802b4712 Accepting request 785867 from home:favogt:branches:openSUSE:Factory
- Drop use of tail from the generated %pre scriptlets

I'll try dropping the bash dep next. A pure lua implementation is possible, but would require some work and is IMO not really necessary. If any of those users are needed, there's very likely also a shell available. For system-user-root it's already pure lua.

OBS-URL: https://build.opensuse.org/request/show/785867
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=22
2020-03-17 14:34:59 +00:00
2f5a50dce3 Accepting request 532757 from home:dimstar:Factory
I think this should finally cater to all cases, and still allow us to have proper error handling on actual systems

OBS-URL: https://build.opensuse.org/request/show/532757
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=13
2017-10-12 11:27:01 +00:00
67a4a2eee0 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=12 2017-10-07 11:55:41 +00:00
ac43675b41 Accepting request 528932 from home:dimstar:Factory
Any thoughts about this change? currently we simply hide all errors deep into zypp's log files and somehow hope the system would be working in the end

OBS-URL: https://build.opensuse.org/request/show/528932
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=11
2017-10-07 10:06:56 +00:00
Thorsten Kukuk
c35174b874 Accepting request 504523 from home:kukuk:sysusers
- Put helper script into own subpackage
- Convert sysusers config file to shadow arguments and use
  shadow suite to create user and groups. Fixes [bsc#1041497] and
  serveral dependency loops.

OBS-URL: https://build.opensuse.org/request/show/504523
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=7
2017-06-19 06:26:55 +00:00
Thorsten Kukuk
99f6895172 Accepting request 499621 from home:kukuk:sysusers
- Don't ignore errors of systemd-sysusers [bsc#1039708]

OBS-URL: https://build.opensuse.org/request/show/499621
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=5
2017-05-30 08:58:34 +00:00
Thorsten Kukuk
1a6cdb03b4 - Don't remove 'm' and 'r' entries from sysusers configuration
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=3
2017-03-15 13:47:36 +00:00
Ludwig Nussel
20ab9219b9 Accepting request 457437 from home:kukuk:sysusers
Initial tool package for the new system user proposal

OBS-URL: https://build.opensuse.org/request/show/457437
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=1
2017-02-16 15:08:58 +00:00