Skip to content

Commit

Permalink
fix: ignore modules.dep virtual extension on schematic id calculation
Browse files Browse the repository at this point in the history
The extension `modules.dep` is a virtual extension, used for the Kernel module dependencies. Therefore, it must not be used when computing the machine schematic - it causes a miscalculation, resulting in failing installer pull attempts from the image factory.

Closes #122.

Signed-off-by: Utku Ozdemir <[email protected]>
(cherry picked from commit f70239c)
  • Loading branch information
utkuozdemir committed Apr 8, 2024
1 parent 7017abc commit be3b9ab
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ func GetSchematicInfo(ctx context.Context, c *client.Client) (SchematicInfo, err
return
}

if name == "modules.dep" { // ignore the virtual extension used for kernel modules dependencies
return
}

if !strings.HasPrefix(name, officialExtensionPrefix) {
name = officialExtensionPrefix + name
}
Expand Down

0 comments on commit be3b9ab

Please sign in to comment.