|
|
@ -59,30 +59,3 @@ echo_status "Including VServer ($pkg_ctx_ver) support." |
|
|
|
hook_add postpatch 5 "lx_extraversion=\$lx_extraversion-vs${pkg_ctx_ver}" |
|
|
|
var_append patchfiles ' ' $pkg_ctx_tempdir/vserver-$pkg_ctx_ver.patch |
|
|
|
[ -n "${pkg_ctx_fixes}" ] && var_append patchfiles ' ' ${pkg_ctx_fixes} |
|
|
|
|
|
|
|
if [ "$SDECFG_PKG_VSERVER_QUOTA" = "1" ]; then |
|
|
|
pkg_ctx_lxver=$ver. |
|
|
|
pkg_vquota_patch= |
|
|
|
if [[ $ver == 2.4.* ]]; then |
|
|
|
# prepare vquota patch |
|
|
|
while [ "$pkg_ctx_lxver" != "${pkg_ctx_lxver%.*}" -a -z "$pkg_quota_patch" ]; do |
|
|
|
pkg_ctx_lxver=${pkg_ctx_lxver%.*} |
|
|
|
pkg_vquota_patch=`match_source_file -p " patch-${pkg_ctx_lxver}[^ ]*-q.*.diff" vserver | head -n 1` |
|
|
|
done |
|
|
|
fi |
|
|
|
|
|
|
|
if [ -n "$pkg_vquota_patch" ]; then |
|
|
|
pkg_vquota_ver=$( echo $pkg_vquota_patch | sed -n -e 's,.*-q\(.*\).diff.bz2,\1,p' ) |
|
|
|
|
|
|
|
[[ ${pkg_vquota_patch} == *.bz2 ]] && x=bzcat || x=cat |
|
|
|
$x $pkg_vquota_patch \ |
|
|
|
> $pkg_ctx_tempdir/vquota-$pkg_vquota_ver.patch |
|
|
|
|
|
|
|
echo_status "Including Per Context Quota/Disk Limits ($pkg_vquota_ver) support." |
|
|
|
var_append patchfiles ' ' $pkg_ctx_tempdir/vquota-$pkg_vquota_ver.patch |
|
|
|
var_append lx_confscripts ' ' $pkg_ctx_confdir/kernel-vquota.conf.sh |
|
|
|
else |
|
|
|
echo_status "No Per Context Quota/Disk Limits support available for Linux ${pkg_ctx_lxver}" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|