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 Upstream-Status: Inappropriate [poky-stx specific]
8 Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
10 bsp-files/kickstarts/post_net_common.cfg | 12 ++++++++++++
11 1 file changed, 12 insertions(+)
13 diff --git a/bsp-files/kickstarts/post_net_common.cfg b/bsp-files/kickstarts/post_net_common.cfg
14 index 46cdeeb..c000348 100755
15 --- a/bsp-files/kickstarts/post_net_common.cfg
16 +++ b/bsp-files/kickstarts/post_net_common.cfg
17 @@ -135,6 +135,18 @@ VLAN=yes
21 + # For Debian style networking settings
22 + cat << EOF >> /etc/network/interfaces
23 +auto $mgmt_dev vlan$mgmt_vlan
25 +iface $mgmt_dev inet dhcp
27 +iface vlan$mgmt_vlan inet dhcp
28 + vlan-raw-device $mgmt_dev
29 + pre-up /sbin/modprobe -q 8021q
33 # Reject DHCPOFFER from DHCP server that doesn't send
34 # wrs-install-uuid option
35 echo "require wrs-install-uuid;" >>/etc/dhcp/dhclient.conf