Skip to content

Commit

Permalink
Merge pull request #501 from azayet01/fix-fstab-mount
Browse files Browse the repository at this point in the history
actions: fix fstab generated in case of FAT{12|16|32}.
  • Loading branch information
obbardc committed May 21, 2024
2 parents d00c9f0 + de36714 commit 227cf70
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion actions/image_partition_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,17 @@ func (i *ImagePartitionAction) generateFSTab(context *debos.DebosContext) error
fs_passno = 2
}
}

fsType := m.part.FS
switch m.part.FS {
case "fat", "fat12", "fat16", "fat32", "msdos":
fsType = "vfat"
default:
break
}

context.ImageFSTab.WriteString(fmt.Sprintf("UUID=%s\t%s\t%s\t%s\t0\t%d\n",
m.part.FSUUID, m.Mountpoint, m.part.FS,
m.part.FSUUID, m.Mountpoint, fsType,
strings.Join(options, ","), fs_passno))
}

Expand Down

0 comments on commit 227cf70

Please sign in to comment.