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

actions: Fix regression introduced with FAT{12|16|32} support. #499

Merged
merged 1 commit into from
May 20, 2024

Conversation

azayet01
Copy link
Contributor

@azayet01 azayet01 commented May 19, 2024

The regression was introduced with the following commit :

commit 94fedb2c0c8a97ceb7c9b153aefa81c8d94ce57b
Author: Christopher Obbard <[email protected]>
Date:   Tue Mar 19 17:43:42 2024 +0000
actions: image-partition: enable creation of FAT{12|16|32} partitions

This one added more options when it comes to creating FAT partitions. So when partition fs is defined as "fat", "fat12", "fat16", "fat32", "msdos" or "vfat", then mkfs.vfat is used to create the partition, and different options were used depending on the FAT type.

The main issue is that mounting a FAT partition should use "vfat"
as fs type when using syscall.Mount().

So, in order to fix this issue, "vfat" is simply used to mount "fat", "fat12", "fat16", "fat32" or "msdos" partitions.

The regression was introduced with the following commit :
  commit 94fedb2
  Author: Christopher Obbard <[email protected]>
  Date:   Tue Mar 19 17:43:42 2024 +0000

  actions: image-partition: enable creation of FAT{12|16|32} partitions

This one added more options when it comes to creating FAT partitions.
So when partition fs is defined as "fat", "fat12", "fat16", "fat32",
"msdos" or "vfat", then mkfs.vfat is used to create the partition,
and different options were used depending on the FAT type.

The main issue is that  mounting a FAT partition should  use "vfat"
 as fs type when using syscall.Mount().

So, in order to fix this issue, "vfat" is simply used to mount "fat",
"fat12", "fat16", "fat32" or "msdos" partitions.

Signed-off-by: Aymen Zayet <[email protected]>
@obbardc obbardc enabled auto-merge May 20, 2024 20:04
@obbardc obbardc added this pull request to the merge queue May 20, 2024
Merged via the queue into go-debos:main with commit d00c9f0 May 20, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression found with the newly added FAT{12|16|32} support
2 participants