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
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.
11 Upstream-Status: Inappropriate [poky-stx specific]
13 Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
15 bsp-files/kickstarts/post_net_common.cfg | 12 ++++++++++++
16 1 file changed, 12 insertions(+)
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
26 + # For Debian style networking settings
27 + cat << EOF >> /etc/network/interfaces
28 +auto $mgmt_dev vlan$mgmt_vlan
30 +iface $mgmt_dev inet dhcp
32 +iface vlan$mgmt_vlan inet dhcp
33 + vlan-raw-device $mgmt_dev
34 + pre-up /sbin/modprobe -q 8021q
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