Skip to content

Commit

Permalink
[Harddisk]
Browse files Browse the repository at this point in the history
* fix removeHotplugPartition
  • Loading branch information
jbleyel committed Jan 7, 2025
1 parent a36aa6a commit a38a9f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/python/Components/Harddisk.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ def addHotplugAudiocd(self, device, physdev=None):
return error, blacklisted, removable, is_cdrom, partitions, medium_found

def removeHotplugPartition(self, device):
device = device.replace("/dev/", "")
for x in self.partitions[:]:
if x.device == device:
self.partitions.remove(x)
Expand Down

0 comments on commit a38a9f4

Please sign in to comment.