[lxc-devel] [lxc-ci/master] images/pld: Fix networking

monstermunchkin on Github lxc-bot at linuxcontainers.org
Wed Oct 28 20:13:40 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 303 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20201028/6c7b925b/attachment.bin>
-------------- next part --------------
From 64dba4242acb442e148523fd84779196733b9342 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Wed, 28 Oct 2020 21:12:26 +0100
Subject: [PATCH] images/pld: Fix networking

/etc/rc.d/init.d/network is trying to use /sbin/ip which doesn't exist.
The ip command is in /bin.

This creates a symlink in /sbin which solves the problem.
---
 images/pld.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/images/pld.yaml b/images/pld.yaml
index 6b5dd33..7a6d249 100644
--- a/images/pld.yaml
+++ b/images/pld.yaml
@@ -152,6 +152,8 @@ actions:
       # uninstall needless systemd-units
       rpm -q systemd-units >/dev/null && rpm -e systemd-units --nodeps --noscripts
 
+      ln -s /bin/ip /sbin/ip
+
       # cleanup
       rpm -e localedb-src
       rm -f /var/cache/hrmib/*


More information about the lxc-devel mailing list