LXC on Ubuntu 20.04 placed at /bin/sed rather than
/usr/bin/sed like the cgtools scripts expect.  Create
a symlink at /usr/bin/sed so that the cgroup tools can
run like usual.

Signed-off-by: Tom Hromatka <tom.hroma...@oracle.com>
---
 ftests/ftests.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ftests/ftests.py b/ftests/ftests.py
index 54eb658ad4dc..fba9d58414b3 100755
--- a/ftests/ftests.py
+++ b/ftests/ftests.py
@@ -147,6 +147,9 @@ def setup(config, do_teardown=True, record_time=False):
     config.container.config()
     config.container.start()
 
+    # LXC on Ubuntu 20.04 put sed in a different spot.  Add a symlink
+    config.container.run(['ln', '-s', '/bin/sed', '/usr/bin/sed'])
+
     # add the libcgroup library to the container's ld
     echo_cmd = ['bash', '-c', 'echo {} >> 
/etc/ld.so.conf.d/libcgroup.conf'.format(
                os.path.join(consts.LIBCG_MOUNT_POINT, 'src/.libs'))]
-- 
2.25.4



_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to