Skip to content

Commit

Permalink
fix: also open in readonly mode when running All lookup method
Browse files Browse the repository at this point in the history
This was missed out in the previous change.

Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
  • Loading branch information
Unix4ever committed Sep 22, 2021
1 parent e367f9d commit 33afba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blockdevice/probe/probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func probePartitions(devpath string) (probed []*ProbedBlockDevice) {
err error
)

bd, err = blockdevice.Open(devpath)
bd, err = blockdevice.Open(devpath, blockdevice.WithMode(blockdevice.ReadonlyMode))
if err != nil {
continue
}
Expand Down

0 comments on commit 33afba3

Please sign in to comment.