Merge pull request #741 from floren/fix-mapper
Fixes a problem when using Docker on a host with an encrypted LLVM root.
This commit is contained in:
commit
dd49c3f47f
|
@ -302,10 +302,9 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro
|
|||
|
||||
if strings.HasPrefix(d.Device, "/dev/mapper/") {
|
||||
devpath, err := filepath.EvalSymlinks(d.Device)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
if err == nil {
|
||||
d.Device = devpath
|
||||
}
|
||||
d.Device = devpath
|
||||
}
|
||||
|
||||
// /dev/root is not the real device name
|
||||
|
|
Loading…
Reference in New Issue