From 57da5d19ce776714d4ca412747efebc85ba28b59 Mon Sep 17 00:00:00 2001 From: Tom Hromatka Date: Tue, 27 Oct 2020 18:18:57 +0000 Subject: [PATCH] ftests: Add symlink to sed 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 --- ftests/ftests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ftests/ftests.py b/ftests/ftests.py index 54eb658a..fba9d584 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.47.2