]> git.pld-linux.org Git - packages/util-vserver.git/blob - util-vserver-no-dynamic-ctx.patch
- rediff patches
[packages/util-vserver.git] / util-vserver-no-dynamic-ctx.patch
1 diff -urNp -x '*.orig' util-vserver-0.30.216-pre3126.org/scripts/vserver-build util-vserver-0.30.216-pre3126/scripts/vserver-build
2 --- util-vserver-0.30.216-pre3126.org/scripts/vserver-build     2021-03-12 21:50:27.621046552 +0100
3 +++ util-vserver-0.30.216-pre3126/scripts/vserver-build 2021-03-12 21:50:27.707714756 +0100
4 @@ -138,6 +138,9 @@ while true; do
5      shift
6  done
7  
8 +test -n "$SETUP_CONTEXT" ||
9 +    panic $"Dynamic Context IDs not supported (use --context option)"
10 +
11  test -n "$VSERVER_NAME" ||
12      panic $"Name of vserver not specified"
13  
14 diff -urNp -x '*.orig' util-vserver-0.30.216-pre3126.org/scripts/vserver.functions util-vserver-0.30.216-pre3126/scripts/vserver.functions
15 --- util-vserver-0.30.216-pre3126.org/scripts/vserver.functions 2016-02-24 19:09:17.000000000 +0100
16 +++ util-vserver-0.30.216-pre3126/scripts/vserver.functions     2021-03-12 21:50:27.707714756 +0100
17 @@ -455,6 +455,10 @@ function _generateChcontextOptions
18  
19      test -z "$S_CONTEXT" || ctx=$S_CONTEXT
20  
21 +    test -n "$ctx" || panic $"\
22 +Dynamic Context IDs are not supported, you must set Context ID
23 +in $vdir/context file"
24 +
25      _generateCapabilityOptions "$vdir"
26      _generateFlagOptions       "$vdir"
27      _generateUMaskOptions      "$vdir"
This page took 0.030584 seconds and 3 git commands to generate.