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

Merge pull request !7 from zhangsong234/master
This commit is contained in:
openeuler-ci-bot 2020-03-18 09:32:16 +08:00 committed by Gitee
commit 721d2ee1d5

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")