Skip to content

Commit

Permalink
foldup: set hostnetowrk for autofilled hostfs and bootkit layers
Browse files Browse the repository at this point in the history
  • Loading branch information
hallyn committed Dec 12, 2023
1 parent cd4a6c6 commit 05d88f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/mosconfig/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ func (i *ImportFile) CompleteTargets(keyProject string) (UserTargets, error) {
ServiceType: "hostfs",
Source: s,
Version: trust.BootkitVersion,
Network: TargetNetwork{Type: HostNetwork},
}
i.Targets = append(i.Targets, newT)
}
Expand All @@ -304,6 +305,7 @@ func (i *ImportFile) CompleteTargets(keyProject string) (UserTargets, error) {
Source: fmt.Sprintf("oci:%s/oci:bootkit-squashfs", bootkitDir),
Version: "1.0.0",
ServiceType: "fs-only",
Network: TargetNetwork{Type: HostNetwork},
}
i.Targets = append(i.Targets, newT)
}
Expand Down

0 comments on commit 05d88f4

Please sign in to comment.