Reviewed: https://review.opendev.org/761047 Committed: https://git.openstack.org/cgit/starlingx/meta-starlingx/commit/?id=c74ebee4bc74889ff57006d7d709e3650368f145 Submitter: Zuul Branch: master
commit c74ebee4bc74889ff57006d7d709e3650368f145 Author: Jackie Huang <email address hidden> Date: Fri Oct 30 17:29:51 2020 +0800
init-ifupdown: add RDEPENDS on ifupdown
The 'ifup' command provided by 'busybox' and 'ifupdown' behave differently when an interface has been configured:
- The one from busybox $ sudo ifup lo; echo $? RTNETLINK answers: File exists 1
- The one from ifupdown $ sudo ifup lo; echo $? ifup: interface lo already configured 0
The exit code 1 from the busybox one would cause the networking service failed, so add RDEPENDS on ifupdown to avoid using the one from busybox.
Partial-Bug: 1901820
Change-Id: I6400a343bb2eebbf95a971a97f98a50ce588b6b2 Signed-off-by: Jackie Huang <email address hidden>
Reviewed: https:/ /review. opendev. org/761047 /git.openstack. org/cgit/ starlingx/ meta-starlingx/ commit/ ?id=c74ebee4bc7 4889ff57006d7d7 09e3650368f145
Committed: https:/
Submitter: Zuul
Branch: master
commit c74ebee4bc74889 ff57006d7d709e3 650368f145
Author: Jackie Huang <email address hidden>
Date: Fri Oct 30 17:29:51 2020 +0800
init-ifupdown: add RDEPENDS on ifupdown
The 'ifup' command provided by 'busybox' and 'ifupdown' behave differently
when an interface has been configured:
- The one from busybox
$ sudo ifup lo; echo $?
RTNETLINK answers: File exists
1
- The one from ifupdown
$ sudo ifup lo; echo $?
ifup: interface lo already configured
0
The exit code 1 from the busybox one would cause the networking service
failed, so add RDEPENDS on ifupdown to avoid using the one from busybox.
Partial-Bug: 1901820
Change-Id: I6400a343bb2eeb bf95a971a97f98a 50ce588b6b2
Signed-off-by: Jackie Huang <email address hidden>