Skip to content

Commit

Permalink
Pass sector-size to the mkfs calls as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
Łukasz 'sil2100' Zemczak committed Feb 18, 2022
1 parent 6796d52 commit 4fc1bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/statemachine/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func (stateMachine *StateMachine) copyStructureContent(volume *gadget.Volume,
}
}
err := mkfsMakeWithContent(structure.Filesystem, partImg, structure.Label,
contentRoot, structure.Size, quantity.Size(512))
contentRoot, structure.Size, stateMachine.SectorSize)
if err != nil {
return fmt.Errorf("Error running mkfs: %s", err.Error())
}
Expand Down

0 comments on commit 4fc1bfd

Please sign in to comment.