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.hromatka@oracle.com>
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'))]