contrib/lxc/post-install
2020-06-01 13:17:14 +00:00

10 lines
281 B
Bash

#!/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