From 6b14c08748749ffce40d23c2eec91e57a5c19608 Mon Sep 17 00:00:00 2001 From: Timothy Redaelli Date: Thu, 2 Feb 2017 17:49:25 +0100 Subject: [PATCH] Add LXC support --- vps2arch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vps2arch b/vps2arch index 80c3eeb..bf843c0 100755 --- a/vps2arch +++ b/vps2arch @@ -32,6 +32,7 @@ get_worldwide_mirrors() { cpu_type=$(uname -m) is_openvz() { [ -d /proc/vz -a ! -d /proc/bc ]; } +is_lxc() { grep -aqw container=lxc /proc/1/environ ; } download() { local path="$1" x= @@ -327,9 +328,12 @@ shift $((OPTIND - 1)) [ -z "$mirrors" ] && mirrors=$(get_worldwide_mirrors) + if is_openvz; then bootloader=none network=netctl +elif is_lxc; then + bootloader=none fi cd /