Open medic15 opened 6 years ago
No objection to changing the partition type from the default linux, but do you mind explaining how it matters? What systems aren’t you seeing having issues booting?
No problems booting but it was a point of confusion for me. I came across this while working on the field update functionality for my product. It took me a couple of hours to dig into this to determine if there was a good reason for the mismatch. The fix is straightforward and might save some future developer the same confusion.
The fix is straightforward and might save some future developer the same confusion
Yes, good point. Even if we decide to stick with Linux partition, we should be explicit about it, rather than relying on default.
My concern primarily is that we just use mkfs.vfat
without specifying the FAT size (-F 12
, -F 16
, or -F 32
), so if we have a small one and end up with FAT16 but a partition type of FAT32, it could be an issue. Then again, anyone using LinuxKis with the default is unlikely to be using FAT12. And, again, I prefer to explicitly use a partition type and then have an option to change it if needed, rather than have it switch based on sizes.
OK, let's get a PR in for this. Want to open it?
Description
The raw-bios output format creates a disk image with a FAT file system in a Linux partition.
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
The partition should be a type compatible with vfat. FAT32 should be a safe choice since even a minimal image is larger than the minimum FAT32 partition size.
Additional information:
Here's a patch for the fix: