k3s/pkg/util/mount
Michael Schmidt 57f89da69a Fix to detect unformatted volumes in CoreOS
The `file` command used here to check whether a device is formatted is not
available for CoreOS. The effect is that the mounter tries to mount an
unformatted volume which fails. This makes it quite tedious to use persistent
volumes in CoreOS.

This patch replaces the `file` command with `lsblk` which is available in
CoreOS. I checked that it's also available on RHEL, Debian, Ubuntu and SLES.
2015-09-17 15:25:23 +02:00
..
doc.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
fake.go Rename IsMountPoint to IsLikelyNotMountPoint 2015-08-14 18:45:43 -04:00
mount.go Fix to detect unformatted volumes in CoreOS 2015-09-17 15:25:23 +02:00
mount_linux.go Rename IsMountPoint to IsLikelyNotMountPoint 2015-08-14 18:45:43 -04:00
mount_linux_test.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
mount_unsupported.go Rename IsMountPoint to IsLikelyNotMountPoint 2015-08-14 18:45:43 -04:00
nsenter_mount.go Fix mounting volumes in docker based kubernetes setup. 2015-09-01 16:42:23 +02:00
nsenter_mount_unsupported.go Rename IsMountPoint to IsLikelyNotMountPoint 2015-08-14 18:45:43 -04:00
safe_format_and_mount_test.go Fix to detect unformatted volumes in CoreOS 2015-09-17 15:25:23 +02:00