Small corrections to POSIX-compliant changes.
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/lxd?expand=0&rev=8
This commit is contained in:
6
lxd.spec
6
lxd.spec
@@ -246,7 +246,7 @@ getent group %{name} >/dev/null || groupadd -r %{name}
|
||||
# /etc/sub[ug]id should exist already (it's part of shadow-utils), but older
|
||||
# distros don't have it. LXD just parses it and doesn't need any special
|
||||
# shadow-utils helpers.
|
||||
touch /etc/subuid /etc/subgid || :
|
||||
touch /etc/subuid /etc/subgid ||:
|
||||
|
||||
# Add sub[ug]ids for LXD's unprivileged containers -- in order to support
|
||||
# isolated containers we add quite a few subuids. Since LXD runs as root we add
|
||||
@@ -261,9 +261,9 @@ touch /etc/subuid /etc/subgid || :
|
||||
#
|
||||
# This default setting of 500 million is enough for ~8000 isolated containers,
|
||||
# which should be enough for most users.
|
||||
grep -q '^root:' /etc/subuid 2>/dev/null || \
|
||||
grep -q '^root:' /etc/subuid || \
|
||||
usermod -v 400000000-900000000 root ||:
|
||||
grep -q '^root:' /etc/subgid 2>/dev/null || \
|
||||
grep -q '^root:' /etc/subgid || \
|
||||
usermod -w 400000000-900000000 root ||:
|
||||
|
||||
%service_add_pre %{name}.service
|
||||
|
Reference in New Issue
Block a user