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() {
|
||||
# OpenVZ hacks
|
||||
if is_openvz; then
|
||||
# FIXME systemd 220+ doesn't work anymore with OpenVZ!
|
||||
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
|
||||
local kernelver
|
||||
read -r _ _ kernelver _ < /proc/version
|
||||
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
|
||||
|
||||
cat <<-EOF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue