Partition extend device filtering across graphical &terminal installations #586
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Graphical installer (Calamares) now uses a unified iso9660/vfat detection function based on blkid to identify ISO and FAT-based bootable USB media. These devices are excluded from the list of installation targets.
Terminal installer (diskutils.go) has been updated to extend read-only media detection using /proc/mounts, covering iso9660 and FAT (vfat/fat32) filesystems, including Rufus-created USB drives.
This ensures consistent filtering across both installers and prevents the UEFI bootable USB drive from appearing as a valid installation destination.
Merge Checklist
All boxes should be checked before merging the PR
Description
ITEP-81482: During EMT ISO installation using a bootable USB drive, the installer was incorrectly listing the UEFI USB device (containing the ISO image) as a valid installation target in both Terminal and Graphical installer modes, which could lead to data loss or incomplete installation if the user selected the USB drive as the destination. This patch introduces unified filtering logic to prevent such scenarios by detecting and excluding all installation media types, including iso9660 filesystems from DD-flashed ISOs or CD/DVDs, FAT/VFAT/FAT32 USB devices created using tools like Rufus, and read-only USB partitions that contain “CDROM” signatures. With these improvements, both Calamares and the terminal installer consistently filter out bootable USB/ISO media, ensuring they no longer appear in the list of valid installation targets.
Any Newly Introduced Dependencies
NO
How Has This Been Tested?
Manually tested