Skip to content

Commit

Permalink
fix: ignore /dev/ram devices
Browse files Browse the repository at this point in the history
These are not what we can install onto, they appear on RPi4.

Signed-off-by: Andrey Smirnov <[email protected]>
  • Loading branch information
smira authored and talos-bot committed Nov 30, 2020
1 parent 98754ec commit 5b4ee44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blockdevice/util/disks.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func GetDisks() ([]*Disk, error) {
skip := false
deviceName := filepath.Base(dev.Name())

for _, prefix := range []string{"sg", "sr", "loop", "md", "dm-"} {
for _, prefix := range []string{"sg", "sr", "loop", "md", "dm-", "ram"} {
if strings.HasPrefix(deviceName, prefix) {
skip = true

Expand Down

0 comments on commit 5b4ee44

Please sign in to comment.