Skip to content

Commit

Permalink
internal/distro: drop DiskByIDDir
Browse files Browse the repository at this point in the history
Azure was the only user of `DiskByIDDir` and since we're using the
different approach to get the device details for azure instances,
this code is not required anymore.
  • Loading branch information
sohankunkerkar committed Jul 23, 2021
1 parent bc24ddd commit 0d3b0a1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/distro/distro.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
// -X github.com/coreos/ignition/v2/internal/distro.mdadmCmd=/opt/bin/mdadm
var (
// Device node directories and paths
diskByIDDir = "/dev/disk/by-id"
diskByLabelDir = "/dev/disk/by-label"
diskByPartUUIDDir = "/dev/disk/by-partuuid"

Expand Down Expand Up @@ -78,7 +77,6 @@ var (
luksRealRootKeyFilePath = "/etc/luks/"
)

func DiskByIDDir() string { return diskByIDDir }
func DiskByLabelDir() string { return diskByLabelDir }
func DiskByPartUUIDDir() string { return diskByPartUUIDDir }

Expand Down

0 comments on commit 0d3b0a1

Please sign in to comment.