Fixed
Created: May 24, 2022
Updated: May 30, 2022
Resolved Date: May 26, 2022
Found In Version: 10.22.21.0
Fix Version: 10.22.24.0
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Userspace
$ setup.sh --machine intel-x86-64 --dl-layers --distro wrlinux
$ . ./environment-setup-x86_64-wrlinuxsdk-linux
$ . ./oe-init-build-env
$ bitbake wrlinux-image-glibc-std
If boot from harddisk and there is ip=dhcp in kernel cmdline:
$ cat /proc/cmdline
console=ttyS0,115200 root=/dev/sda1 rw ip=dhcp
There will be many strange routes:
$ route
Destination Gateway Genmask Flags Metric Ref Use Iface
default _gateway 0.0.0.0 UG 100 0 0 eth0
default _gateway 0.0.0.0 UG 1024 0 0 eth0
example.domain.ad _gateway 255.255.255.255 UGH 1024 0 0 eth0
10.24.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.24.16.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0
_gateway 0.0.0.0 255.255.255.255 UH 1024 0 0 eth0
foo.example.com _gateway 255.255.255.255 UGH 1024 0 0 eth0
10.11.10.30 _gateway 255.255.255.255 UGH 1024 0 0 eth0
There are 3 workarounds:
1. Remove ip=dhcp from kernel cmdline if boot from harddisk.
2. Disable systemd-network-generator
$ systemctl disable systemd-network-generator.service
$ reboot
3. Disable systemd-networkd
$ systemctl disable systemd-networkd
$ reboot
Because we use dhcpcd (on std image) or NetworkManager (on XFCE image) to configure the network interface. So stopping systemd-networkd has no effect on the system.
1) setup.sh
/lpg-build/cdc/fast_prod/WRLINUX_CI/RC_GIT/wrlinux-10/setup.sh --machine intel-x86-64 --dl-layers --distro wrlinux --templates feature/xfce feature/dhcp-server-kea feature/ipv6 feature/kubernetes feature/netplan feature/nfsd feature/nftables feature/ntp feature/package-management feature/sftp-server feature/wireguard --layers meta-filesystems meta-security-compliance meta-virtualization --dl-layers
2). ./environment-setup-x86_64-wrlinuxsdk-linux
3) . ./oe-init-build-env
4) vim conf/local.conf
IMAGE_INSTALL:append = " systemd
5) bitbake wrlinux-image-glibc-std
6)boot the target and run commands per problem description