Use my repository for OpenVZ-patched systemd
This commit is contained in:
parent
64d2cb8e60
commit
17cd27524e
2 changed files with 7 additions and 6 deletions
|
@ -77,6 +77,3 @@ Caveats
|
||||||
-------
|
-------
|
||||||
|
|
||||||
_IPv6_ currently is not supported. If you need to use it, please configure it manually.
|
_IPv6_ currently is not supported. If you need to use it, please configure it manually.
|
||||||
|
|
||||||
[OpenVZ](http://openvz.org/) and [Virtuozzo](http://www.odin.com/products/virtuozzo/) are **partially** supported.
|
|
||||||
The script works fine, but _systemd_ will be blocked on version 219, because newer systemd versions doesn't work anymore on OpenVZ containers.
|
|
||||||
|
|
10
vps2arch
10
vps2arch
|
@ -88,6 +88,11 @@ configure_chroot() {
|
||||||
|
|
||||||
# Generate fstab
|
# Generate fstab
|
||||||
chroot_exec 'genfstab /mnt >> /etc/fstab'
|
chroot_exec 'genfstab /mnt >> /etc/fstab'
|
||||||
|
|
||||||
|
if is_openvz && [ "$kernelver" '<' '2.6.32-042stab111.1' ]; then
|
||||||
|
# Use my repository for OpenVZ-patched systemd
|
||||||
|
sed -i 's;^#\[testing\]$;[tredaelli-systemd]\nServer = http://pkgbuild.com/~tredaelli/repo/systemd/$arch\n\n&;' "/root.$cpu_type/etc/pacman.conf"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
save_root_pass() {
|
save_root_pass() {
|
||||||
|
@ -231,9 +236,8 @@ finalize() {
|
||||||
# Virtuozzo 7 works with systemd, but it needs /etc/resolvconf/resolv.conf.d directory
|
# Virtuozzo 7 works with systemd, but it needs /etc/resolvconf/resolv.conf.d directory
|
||||||
mkdir -p /etc/resolvconf/resolv.conf.d
|
mkdir -p /etc/resolvconf/resolv.conf.d
|
||||||
elif [ "$kernelver" '<' '2.6.32-042stab111.1' ]; then
|
elif [ "$kernelver" '<' '2.6.32-042stab111.1' ]; then
|
||||||
# systemd 220+ doesn't work with old OpenVZ legacy kernels!
|
# Use my repository for OpenVZ-patched systemd
|
||||||
pacman --noconfirm -U "http://seblu.net/a/arm/all/systemd-219-6-$cpu_type.pkg.tar.xz"
|
sed -i 's;^#\[testing\]$;[tredaelli-systemd]\nServer = http://pkgbuild.com/~tredaelli/repo/systemd/$arch\n\n&;' /etc/pacman.conf
|
||||||
sed -i 's/^\([[:space:]]*\)#IgnorePkg\([[:space:]]*\)=$/\1IgnorePkg\2= systemd/' /etc/pacman.conf
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue