Skip to content

Commit

Permalink
skip floppy disk when check disk free space (#2867)
Browse files Browse the repository at this point in the history
  • Loading branch information
LiliDeng authored Jul 30, 2023
1 parent fc8e035 commit aaa2dca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lisa/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@ def find_partition_with_freespace(
else:
# mount the disk if it isn't mounted
disk_name = disk.name
# skip floppy disk
if "fd" in disk_name:
continue
if not disk.is_mounted:
mountpoint = f"{PATH_REMOTE_ROOT}/{disk_name}"
self.tools[Mkfs].format_disk(disk.device_name, FileSystem.ext4)
Expand Down

0 comments on commit aaa2dca

Please sign in to comment.