mirror of
https://git.proxmox.com/git/lxc
synced 2025-08-17 00:53:22 +00:00

for consistency, this also ignores profile-reload errors (again so that we can install it in a chroot without unnecessary installation failures)
34 lines
610 B
Bash
34 lines
610 B
Bash
#!/bin/sh
|
|
# postinst script for lxc
|
|
#
|
|
# see: dh_installdeb(1)
|
|
|
|
set -e
|
|
|
|
# for details, see http://www.debian.org/doc/debian-policy/ or
|
|
# the debian-policy package
|
|
|
|
case "$1" in
|
|
configure)
|
|
|
|
# create subuid/subgui map for root
|
|
# (to run unprivileged containers as root)
|
|
usermod -v 100000-165535 -w 100000-165535 root
|
|
;;
|
|
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
;;
|
|
|
|
*)
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
# dh_installdeb will replace this with shell code automatically
|
|
# generated by other debhelper scripts.
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|