Add support for Virtuozzo 7 and remove the systemd hack for new OpenVZ legacy kernels
https://bugzilla.openvz.org/show_bug.cgi?id=3280
This commit is contained in:
parent
dc0c049706
commit
e1f6ac3123
1 changed files with 10 additions and 3 deletions
13
vps2arch
13
vps2arch
|
@ -212,9 +212,16 @@ configure_network() {
|
||||||
finalize() {
|
finalize() {
|
||||||
# OpenVZ hacks
|
# OpenVZ hacks
|
||||||
if is_openvz; then
|
if is_openvz; then
|
||||||
# FIXME systemd 220+ doesn't work anymore with OpenVZ!
|
local kernelver
|
||||||
pacman --noconfirm -U "http://seblu.net/a/arm/all/systemd-219-6-$cpu_type.pkg.tar.xz"
|
read -r _ _ kernelver _ < /proc/version
|
||||||
sed -i 's/^\([[:space:]]*\)#IgnorePkg\([[:space:]]*\)=$/\1IgnorePkg\2= systemd/' /etc/pacman.conf
|
if [ "$kernelver" '>' '3.10' ]; then
|
||||||
|
# Virtuozzo 7 works with systemd, but it needs /etc/resolvconf/resolv.conf.d directory
|
||||||
|
mkdir -p /etc/resolvconf/resolv.conf.d
|
||||||
|
elif [ "$kernelver" '<' '2.6.32-042stab111.1' ]; then
|
||||||
|
# systemd 220+ doesn't work with old OpenVZ legacy kernels!
|
||||||
|
pacman --noconfirm -U "http://seblu.net/a/arm/all/systemd-219-6-$cpu_type.pkg.tar.xz"
|
||||||
|
sed -i 's/^\([[:space:]]*\)#IgnorePkg\([[:space:]]*\)=$/\1IgnorePkg\2= systemd/' /etc/pacman.conf
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat <<-EOF
|
cat <<-EOF
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue