Skip to content

Commit

Permalink
Initializing device
Browse files Browse the repository at this point in the history
  • Loading branch information
Madhu Narasappa committed Feb 24, 2024
1 parent 7815e6e commit e473fda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/base/linuxutils/lsblk/lsblk.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ func (l *LSBLK) GetBlockDevices(device string) ([]BlockDevice, error) {
// Returns drive's path based on provided drivecrd.Drive or error if something went wrong
func (l *LSBLK) SearchDrivePath(drive *api.Drive) (string, error) {

device := ""
// try to find it with lsblk
lsblkOut, err := l.GetBlockDevices("")
if err != nil {
Expand Down

0 comments on commit e473fda

Please sign in to comment.