From 4fc1bfd975b3b5135986ac03c67488989a92932f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20=27sil2100=27=20Zemczak?= Date: Fri, 18 Feb 2022 10:29:47 +0100 Subject: [PATCH] Pass sector-size to the mkfs calls as well. --- internal/statemachine/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/statemachine/helper.go b/internal/statemachine/helper.go index 085ef5ad..8144e381 100644 --- a/internal/statemachine/helper.go +++ b/internal/statemachine/helper.go @@ -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()) }