lxcfs icon indicating copy to clipboard operation
lxcfs copied to clipboard

Mount hook fails on sysfs-less containers

Open allixx opened this issue 3 years ago • 0 comments

share/lxcfs/lxc.mount.hook fails to mount /sys/devices/system/cpu when target container doesn't have sysfs mounted, erroring the whole script due to #/bin/sh -e shebang, and preventing container start.

I propose making hook script more robust by adding a corresponding check.

https://github.com/allixx/lxcfs/commit/29ef6dce5fd5706d06a46f814ccfe04bde921abb

allixx avatar Oct 29 '22 09:10 allixx