Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-flock / stx-metal / files / kickstarts-add-vlan-setting-for-debain-style-network.patch
1 From 97228a9287bec2049767d175f97226d90b4be943 Mon Sep 17 00:00:00 2001
2 From: Jackie Huang <jackie.huang@windriver.com>
3 Date: Sun, 22 Nov 2020 22:00:58 +0800
4 Subject: [PATCH] kickstarts: add vlan setting for debain style networking
5
6 Yocto uses debain style for networking, the previous patch
7 kickstarts-add-setting-for-debain-style-networking.patch
8 has fixed the non-vlan scenario but not for vlan scenario,
9 so add vlan settings as well.
10
11 Upstream-Status: Inappropriate [poky-stx specific]
12
13 Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
14 ---
15  bsp-files/kickstarts/post_net_common.cfg | 12 ++++++++++++
16  1 file changed, 12 insertions(+)
17
18 diff --git a/bsp-files/kickstarts/post_net_common.cfg b/bsp-files/kickstarts/post_net_common.cfg
19 index 46cdeeb..c000348 100755
20 --- a/bsp-files/kickstarts/post_net_common.cfg
21 +++ b/bsp-files/kickstarts/post_net_common.cfg
22 @@ -135,6 +135,18 @@ VLAN=yes
23  LINKDELAY=20
24  EOF
25
26 +    # For Debian style networking settings
27 +    cat << EOF >> /etc/network/interfaces
28 +auto $mgmt_dev vlan$mgmt_vlan
29 +
30 +iface $mgmt_dev inet dhcp
31 +
32 +iface vlan$mgmt_vlan inet dhcp
33 +    vlan-raw-device $mgmt_dev
34 +    pre-up /sbin/modprobe -q 8021q
35 +EOF
36 +
37 +
38      # Reject DHCPOFFER from DHCP server that doesn't send
39      # wrs-install-uuid option
40      echo "require wrs-install-uuid;" >>/etc/dhcp/dhclient.conf
41 --
42 2.7.4
43