Skip to content

Commit

Permalink
distrobuilder: Also install exes when injecting drivers
Browse files Browse the repository at this point in the history
The NetKVM driver depends on starting a service when it is installed.
Without the corresponding exes, this will fail, so also install any
relevant exes when injecting the driver.

Signed-off-by: Mathias Gibbens <[email protected]>
  • Loading branch information
gibmat committed Oct 25, 2024
1 parent 44afec7 commit d28bd23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distrobuilder/main_repack-windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ func (c *cmdRepackWindows) injectDrivers(infDir, driversDir, filerepositoryDir,
}
}

for ext, dir := range map[string]string{"inf": infDir, "cat": driversDir, "dll": driversDir, "sys": driversDir} {
for ext, dir := range map[string]string{"inf": infDir, "cat": driversDir, "dll": driversDir, "exe": driversDir, "sys": driversDir} {
sourceMatches, err := shared.FindAllMatches(sourceDir, fmt.Sprintf("*.%s", ext))
if err != nil {
logger.Debugf("failed to find first match %q %q", driverName, ext)
Expand All @@ -514,7 +514,7 @@ func (c *cmdRepackWindows) injectDrivers(infDir, driversDir, filerepositoryDir,
return err
}

if ext == "cat" {
if ext == "cat" || ext == "exe" {
continue
} else if ext == "inf" {
targetName = infFilename
Expand Down

0 comments on commit d28bd23

Please sign in to comment.