Skip to content

Commit

Permalink
osbuild: fix G601 in genMountsForBootupd()
Browse files Browse the repository at this point in the history
  • Loading branch information
mvo5 committed Jul 4, 2024
1 parent 53187f2 commit d28a8a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/osbuild/bootupd_stage.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ func genMountsForBootupd(source string, pt *disk.PartitionTable) ([]Mount, error
mount.Partition = common.ToPtr(idx + 1)
mounts = append(mounts, *mount)
case *disk.Btrfs:
for _, subvol := range payload.Subvolumes {
mount, err := genOsbuildMount(source, &subvol)
for i := range payload.Subvolumes {
mount, err := genOsbuildMount(source, &payload.Subvolumes[i])
if err != nil {
return nil, err
}
Expand Down

0 comments on commit d28a8a8

Please sign in to comment.