contrib/lxc/post-install

10 lines
281 B
Plaintext
Raw Normal View History

2020-06-01 15:17:14 +02:00
#!/bin/sh
# Setup user mapping for unprivileged containers
test -f '/etc/subuid' || touch '/etc/subuid'
/usr/sbin/usermod -v 100000-165535 root
# Setup group mapping for unprivileged containers
test -f '/etc/subgid' || touch '/etc/subgid'
/usr/sbin/usermod -w 100000-165535 root