lxcfs-tools: wait a bit long time for lxcfs ready

Signed-off-by: zhangsong34 <zhangsong34@huawei.com>
This commit is contained in:
zhangsong34 2020-03-18 19:16:20 +08:00
parent 28a3b75170
commit 0aa698a532

View File

@ -156,7 +156,8 @@ func doprestart() error {
func waitForLxcfs() error {
count := 0
maxCount := 100
// bugfix: wait a bit long time for lxcfs ready
maxCount := 300
for count < maxCount {
_, err := ioutil.ReadDir("/var/lib/lxc/lxcfs/proc")