Skip to content

Commit

Permalink
add a filter in get_list_of_disks to prevent it to pick up devices li…
Browse files Browse the repository at this point in the history
…ke /dev/mmcblk0rpmb (https://lwn.net/Articles/682276/)
  • Loading branch information
lucabelluccini authored and bryteise committed Oct 10, 2018
1 parent 7a5d488 commit a0abe19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ister_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ def get_list_of_disks():
parts = output.split('\n')
for part in parts:
part = part.strip()
# This filter prevents the installer to stop on /dev/mmcblk0rpmb
# More on https://lwn.net/Articles/682276/
if part.startswith('mmc') and 'rpm' in part:
continue
if 'disk' in part:
disks.append(part.split()[0])
elif part.endswith('/'):
Expand Down

0 comments on commit a0abe19

Please sign in to comment.