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.
|
||||
|
||||
[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
|
||||
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() {
|
||||
|
@ -231,9 +236,8 @@ finalize() {
|
|||
# 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
|
||||
# Use my repository for OpenVZ-patched systemd
|
||||
sed -i 's;^#\[testing\]$;[tredaelli-systemd]\nServer = http://pkgbuild.com/~tredaelli/repo/systemd/$arch\n\n&;' /etc/pacman.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue