Add LXC support

This commit is contained in:
Timothy Redaelli 2017-02-02 17:49:25 +01:00
parent 867d5c846a
commit 6b14c08748

View file

@ -32,6 +32,7 @@ get_worldwide_mirrors() {
cpu_type=$(uname -m) cpu_type=$(uname -m)
is_openvz() { [ -d /proc/vz -a ! -d /proc/bc ]; } is_openvz() { [ -d /proc/vz -a ! -d /proc/bc ]; }
is_lxc() { grep -aqw container=lxc /proc/1/environ ; }
download() { download() {
local path="$1" x= local path="$1" x=
@ -327,9 +328,12 @@ shift $((OPTIND - 1))
[ -z "$mirrors" ] && mirrors=$(get_worldwide_mirrors) [ -z "$mirrors" ] && mirrors=$(get_worldwide_mirrors)
if is_openvz; then if is_openvz; then
bootloader=none bootloader=none
network=netctl network=netctl
elif is_lxc; then
bootloader=none
fi fi
cd / cd /