Fix handling of symbolic links

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh 2018-12-28 13:09:31 -05:00
parent c50332d057
commit c141c5cfd2
No known key found for this signature in database
GPG Key ID: A2DF901DABE2C028
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ func devicesFromPath(g *generate.Generator, devicePath string) error {
return nil
}
return addDevice(g, devicePath)
return addDevice(g, strings.Join(append([]string{resolvedDevicePath}, devs[1:]...), ":"))
}
func addDevice(g *generate.Generator, device string) error {