Trying to fix building in Docker

This commit is contained in:
zador-blood-stained 2016-06-30 02:01:30 +03:00
parent 9bd426b2dc
commit bc9868c0ba

View File

@ -355,7 +355,18 @@ prepare_host() {
apt-key adv --keyserver keys.gnupg.net --recv-keys 9E3E53F19C7DE460
fi
if [[ $codename == xenial ]]; then hostdeps="$hostdeps systemd-container"; fi
if [[ $codename == xenial ]]; then
hostdeps="$hostdeps systemd-container"
if systemd-detect-virt -q; then
display_alert "Running in container" "$(systemd-detect-virt)" "info"
# TODO: force disable ramdisk and apt-cacher-ng by default?
#FORCE_USE_RAMDISK=no
# create device nodes for loop devices
for i in {0..6}; do
mknod -m0660 /dev/loop$i b 7 $i
done
fi
fi
# Deboostrap in trusty breaks due too old debootstrap. We are installing Xenial package
local debootstrap_version=$(dpkg-query -W -f='${Version}\n' debootstrap | cut -f1 -d'+')