]> code.ossystems Code Review - openembedded-core.git/commitdiff
Revert "ifupdown: create file interfaces if not exist"
authorChen Qi <Qi.Chen@windriver.com>
Mon, 30 Mar 2020 02:06:27 +0000 (10:06 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Mar 2020 11:34:58 +0000 (12:34 +0100)
This reverts commit 4e692daf66d2c9d51d418706e20f4527505dc0bd.

The patch did not take into consideration of read-only rootfs, causing
the following regression.

  ERROR "The following packages could not be configured offline and rootfs is read-only: ['100-ifupdown']"

The original patch was added to resolve problem running `ifup eth1' on
a systemd based rootfs. However, when using systemd, we do not use ifup
to manage our network interfaces.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/ifupdown/ifupdown_0.8.35.bb

index a8913e6e293d429a1ea2c6c79e8cbd1af3adb987..53cb971d338454b7e278d48ae28572383e96c76c 100644 (file)
@@ -48,13 +48,6 @@ do_install_ptest () {
     cp -r ${S}/tests/linux ${D}${PTEST_PATH}/tests/
 }
 
-pkg_postinst_ontarget_${PN} () {
-    if [ ! -f /etc/network/interfaces ]; then
-        mkdir -p /etc/network
-        touch /etc/network/interfaces
-    fi
-}
-
 ALTERNATIVE_PRIORITY = "100"
 ALTERNATIVE_${PN} = "ifup ifdown"