My LXC containers are failing to start with segfault exceptions. It seems that the root cause for this is a mount that is not available when the LXC container is starting.
So what happens is that I have an external drive mounted at /mnt/external and that folder I have mounted in my LXC containers by using Mount Points. So the issue is that that external drive uses "Maximum mount count: 1", which means that every time the drive is mounted, it first runs fsck on it. This delays the mount and the LXC container fails to start. Is there some way to delay the LXC container from starting before the fsck is completed? I'm aware that setting Maximum mount count to -1 solves the issue, but then the drives are not checked for errors, which is not what I need.
As a suboptimal solution would be to use the "Startup delay" option from the containers, but that seems to not work properly. I can set startup delays of 60 seconds, and it will start anyway immediately and fail.
Any ideas or suggestions?
So what happens is that I have an external drive mounted at /mnt/external and that folder I have mounted in my LXC containers by using Mount Points. So the issue is that that external drive uses "Maximum mount count: 1", which means that every time the drive is mounted, it first runs fsck on it. This delays the mount and the LXC container fails to start. Is there some way to delay the LXC container from starting before the fsck is completed? I'm aware that setting Maximum mount count to -1 solves the issue, but then the drives are not checked for errors, which is not what I need.
As a suboptimal solution would be to use the "Startup delay" option from the containers, but that seems to not work properly. I can set startup delays of 60 seconds, and it will start anyway immediately and fail.
Any ideas or suggestions?