Browse code

Making network interface file name with convention

Change-Id: I080ff3a21d1f4317738bb6d749f4b9957c6db6b2
Reviewed-on: http://photon-jenkins.eng.vmware.com/493
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: suezzelur <anishs@vmware.com>

Kumar Kaushik authored on 2016/02/03 03:42:36
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,20 @@
0
+diff -ru gosc-scripts/imc-shell/imgcust-scripts/CustomizationUtils.sh gosc-scripts-modified/imc-shell/imgcust-scripts/CustomizationUtils.sh
1
+--- gosc-scripts/imc-shell/imgcust-scripts/CustomizationUtils.sh	2016-02-01 19:02:43.261707000 -0800
2
+@@ -392,6 +392,7 @@
3
+ 
4
+   Debug "Patching /etc/hosts with [$res]"
5
+   echo "${res}" > /etc/hosts
6
++  "127.0.0.1   localhost" >> /etc/hosts
7
+ }
8
+ 
9
+ # Detects interface name by MAC address out of 'ip addr show' output.
10
+@@ -939,7 +940,7 @@
11
+ 
12
+     export formatResult=$formatResult$(${CAT} <<EOF
13
+ 
14
+-    - path: /etc/systemd/network/ifcfg-$ifCfg.network
15
++    - path: /etc/systemd/network/10-$ifCfg.network
16
+       permissions: 0644
17
+       content: |
18
+         [Match]
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Usermode tools for VmWare virts
2 2
 Name:		open-vm-tools
3 3
 Version:	10.0.5
4
-Release:	1%{?dist}
4
+Release:	2%{?dist}
5 5
 License:	LGPLv2+
6 6
 URL:		https://github.com/vmware/open-vm-tools
7 7
 Group:		Applications/System
... ...
@@ -20,6 +20,7 @@ Patch5:         skipreboot.patch
20 20
 Patch6:         GOSC-counterBug.patch
21 21
 Patch7:         LighwaveHostPatch.patch
22 22
 Patch8:         GOSC-ssh-support.patch
23
+Patch9:         GOSC-vcenter-photon.patch
23 24
 BuildRequires: 	glib-devel
24 25
 BuildRequires: 	xerces-c-devel
25 26
 BuildRequires: 	xml-security-c-devel
... ...
@@ -52,6 +53,7 @@ VmWare virtualization user mode tools
52 52
 %patch6 -p0
53 53
 %patch7 -p0
54 54
 %patch8 -p0
55
+%patch9 -p0
55 56
 %build
56 57
 touch ChangeLog
57 58
 autoreconf -i
... ...
@@ -123,6 +125,8 @@ fi
123 123
 
124 124
 
125 125
 %changelog
126
+*       Tue Feb 02 2016 Kumar Kaushik <kaushikk@vmware.com> 10.0.5-2
127
+-       Making interface file name according to convention.
126 128
 *	Tue Jan 26 2016 Anish Swaminathan <anishs@vmware.com> 10.0.5-1
127 129
 -	Upgrade version.
128 130
 *	Wed Dec 09 2015 Anish Swaminathan <anishs@vmware.com> 10.0.0-13