From: Tom Hromatka Date: Tue, 27 Oct 2020 18:18:57 +0000 (+0000) Subject: ftests: Add symlink to sed X-Git-Tag: v2.0.3~11^2^2~31^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57da5d19ce776714d4ca412747efebc85ba28b59;p=thirdparty%2Flibcgroup.git 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 --- 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'))]