Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] Developer from OpenViX:Developer #736

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/python/Components/Harddisk.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,7 @@ def getMountpoint(self, device, skiproot=None):
def addHotplugPartition(self, device, physDevice=None, model=None):
print("[Harddsk][addHotplugPartition] Evaluating hotplug connected device...")
print(f"[Harddsk][addHotplugPartition] : device = '{device}', physDevice = '{physDevice}'")
device = device.replace("/dev/", "")
HDDin = error = removable = isCdrom = blacklisted = False
mediumFound = True
hddDev, part = self.splitDeviceName(device)
Expand Down Expand Up @@ -935,7 +936,8 @@ def addHotplugPartition(self, device, physDevice=None, model=None):
return error, blacklisted, removable, isCdrom, self.partitions, mediumFound # Return for hotplug legacy code.

def removeHotplugPartition(self, device):
print("[Harddisk] Evaluating hotplug disconnected device...")
print("[Harddsk][removeHotplugPartition] Evaluating hotplug disconnected device...")
device = device.replace("/dev/", "")
hddDev, part = self.splitDeviceName(device) # Separate the device from the partition.
for partition in self.partitions:
if partition.device is None:
Expand Down