vendor: bump mountinfo v0.3.1

It contains some breaking changes, so fix the code.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2020-10-01 17:40:58 -07:00
parent c82737665a
commit 87412ee435
14 changed files with 46 additions and 61 deletions
+1 -1
View File
@@ -813,7 +813,7 @@ func msMoveRoot(rootfs string) error {
skip = false
stop = false
// Collect every sysfs and proc file systems, except those under the container rootfs
if (info.Fstype != "proc" && info.Fstype != "sysfs") || strings.HasPrefix(info.Mountpoint, rootfs) {
if (info.FSType != "proc" && info.FSType != "sysfs") || strings.HasPrefix(info.Mountpoint, rootfs) {
skip = true
return
}