diff --git a/plinth/modules/storage/__init__.py b/plinth/modules/storage/__init__.py index 5c0248075..9d6555be2 100644 --- a/plinth/modules/storage/__init__.py +++ b/plinth/modules/storage/__init__.py @@ -174,12 +174,12 @@ def is_removable_device(disk): def is_root_partition(disk): """Returns whether this disk is mounted at /.""" - return disk['mountpoint'] == '/' and disk['type'] == 'part' + return disk['mountpoint'] == '/' def is_boot_partition(disk): """Returns whether this disk is mounted at /boot.""" - return disk['mountpoint'] == '/boot' and disk['type'] == 'part' + return disk['mountpoint'] == '/boot' def is_expandable(device):