summaryrefslogtreecommitdiff
path: root/lxc/post-install
blob: 039c467871de5b6e99603b4b35fbf0686e3b2271 (plain)
    1 #!/bin/sh
    2 
    3 # Setup user mapping for unprivileged containers
    4 test -f '/etc/subuid' || touch '/etc/subuid'
    5 /usr/sbin/usermod -v 100000-165535 root
    6 
    7 # Setup group mapping for unprivileged containers
    8 test -f '/etc/subgid' || touch '/etc/subgid'
    9 /usr/sbin/usermod -w 100000-165535 root

Generated by cgit