manifest: use size from partition table for efiboot image

This commit is contained in:
Achilleas Koutsou 2022-09-29 18:55:35 +02:00 committed by Tomáš Hozza
parent 3ee5622ad7
commit 6bd15c19a3

View file

@ -140,7 +140,7 @@ func (p *ISOTree) serialize() osbuild.Pipeline {
filename := "images/efiboot.img"
pipeline.AddStage(osbuild.NewTruncateStage(&osbuild.TruncateStageOptions{
Filename: filename,
Size: "20MB",
Size: fmt.Sprintf("%d", p.PartitionTable.Size),
}))
efibootDevice := osbuild.NewLoopbackDevice(&osbuild.LoopbackDeviceOptions{Filename: filename})