diff options
Diffstat (limited to 'recipes-containers/lxc/files/lxc-0.9.0-use-susv3-head-arguments.patch')
-rw-r--r-- | recipes-containers/lxc/files/lxc-0.9.0-use-susv3-head-arguments.patch | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/recipes-containers/lxc/files/lxc-0.9.0-use-susv3-head-arguments.patch b/recipes-containers/lxc/files/lxc-0.9.0-use-susv3-head-arguments.patch deleted file mode 100644 index 86ed7d25..00000000 --- a/recipes-containers/lxc/files/lxc-0.9.0-use-susv3-head-arguments.patch +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | Upstream-status: Pending | ||
2 | |||
3 | --- lxc-0.9.0.orig/src/lxc/lxc-checkconfig.in | ||
4 | +++ lxc-0.9.0/src/lxc/lxc-checkconfig.in | ||
5 | @@ -67,7 +67,7 @@ print_cgroups() { | ||
6 | awk '$1 !~ /#/ && $3 == mp { print $2; } ; END { exit(0); } ' "mp=$1" "$2" ; | ||
7 | } | ||
8 | |||
9 | -CGROUP_MNT_PATH=`print_cgroups cgroup /proc/self/mounts | head -1` | ||
10 | +CGROUP_MNT_PATH=`print_cgroups cgroup /proc/self/mounts | head -n 1` | ||
11 | KVER_MAJOR=$($GREP '^# Linux' $CONFIG | \ | ||
12 | sed -r 's/.* ([0-9])\.[0-9]{1,2}\.[0-9]{1,3}.*/\1/') | ||
13 | if [ "$KVER_MAJOR" = "2" ]; then | ||
14 | --- lxc-0.9.0.orig/src/lxc/lxc-netstat.in | ||
15 | +++ lxc-0.9.0/src/lxc/lxc-netstat.in | ||
16 | @@ -107,7 +107,7 @@ if [ ! -d "$parent_cgroup" ]; then | ||
17 | exit 1 | ||
18 | fi | ||
19 | |||
20 | -pid=$(head -1 $parent_cgroup/$name/tasks) | ||
21 | +pid=$(head -n 1 $parent_cgroup/$name/tasks) | ||
22 | |||
23 | if [ -z "$pid" ]; then | ||
24 | echo "$(basename $0): no process found for '$name'" >&2 | ||
25 | --- lxc-0.9.0.orig/templates/lxc-alpine.in | ||
26 | +++ lxc-0.9.0/templates/lxc-alpine.in | ||
27 | @@ -99,7 +99,7 @@ EOF | ||
28 | if [ "$nics" -eq 1 ] && ! grep -q "^lxc.network.hwaddr" $path/config; then | ||
29 | # see http://sourceforge.net/tracker/?func=detail&aid=3411497&group_id=163076&atid=826303 | ||
30 | hwaddr="fe:$(dd if=/dev/urandom bs=8 count=1 2>/dev/null |od -t x8 | \ | ||
31 | - head -1 |awk '{print $2}' | cut -c1-10 |\ | ||
32 | + head -n 1 |awk '{print $2}' | cut -c1-10 |\ | ||
33 | sed 's/\(..\)/\1:/g; s/.$//')" | ||
34 | echo "lxc.network.hwaddr = $hwaddr" >> $path/config | ||
35 | fi | ||
36 | --- lxc-0.9.0.orig/templates/lxc-oracle.in | ||
37 | +++ lxc-0.9.0/templates/lxc-oracle.in | ||
38 | @@ -327,7 +327,7 @@ container_config_create() | ||
39 | # generate a hwaddr for the container with a high mac address | ||
40 | # see http://sourceforge.net/tracker/?func=detail&aid=3411497&group_id=163076&atid=826303 | ||
41 | local hwaddr="fe:`dd if=/dev/urandom bs=8 count=1 2>/dev/null |od -t x8 | \ | ||
42 | - head -1 |awk '{print $2}' | cut -c1-10 |\ | ||
43 | + head -n 1 |awk '{print $2}' | cut -c1-10 |\ | ||
44 | sed 's/\(..\)/\1:/g; s/.$//'`" | ||
45 | mkdir -p $cfg_dir || die "unable to create config dir $cfg_dir" | ||
46 | cat <<EOF >> $cfg_dir/config || die "unable to create $cfg_dir/config" | ||