pipeline: add locale stage
This was left out from 7625d26ff5.
Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
5fbc734a15
commit
6c49acbd51
3 changed files with 34 additions and 6 deletions
|
|
@ -5,7 +5,7 @@ type FixBLSStageOptions struct {
|
|||
|
||||
func (FixBLSStageOptions) isStageOptions() {}
|
||||
|
||||
func NewFIXBLSStage() *Stage {
|
||||
func NewFixBLSStage() *Stage {
|
||||
return &Stage{
|
||||
Name: "org.osbuild.fix-bls",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,11 +18,19 @@ func NewFSTabStage(options *FSTabStageOptions) *Stage {
|
|||
type FSTabEntry struct {
|
||||
UUID uuid.UUID `json:"uuid"`
|
||||
VFSType string `json:"vfs_type"`
|
||||
Path string `json:"path"`
|
||||
Freq int64 `json:"freq"`
|
||||
PassNo int64 `json:"passno"`
|
||||
Path string `json:"path,omitempty"`
|
||||
Options string `json:"options,omitempty"`
|
||||
Freq uint64 `json:"freq,omitempty"`
|
||||
PassNo uint64 `json:"passno,omitempty"`
|
||||
}
|
||||
|
||||
func (options *FSTabStageOptions) AddEntry(entry *FSTabEntry) {
|
||||
options.FileSystems = append(options.FileSystems, entry)
|
||||
func (options *FSTabStageOptions) AddFilesystem(id uuid.UUID, vfsType string, path string, opts string, freq uint64, passNo uint64) {
|
||||
options.FileSystems = append(options.FileSystems, &FSTabEntry{
|
||||
UUID: id,
|
||||
VFSType: vfsType,
|
||||
Path: path,
|
||||
Options: opts,
|
||||
Freq: freq,
|
||||
PassNo: passNo,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
20
internal/pipeline/locale_stage.go
Normal file
20
internal/pipeline/locale_stage.go
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
package pipeline
|
||||
|
||||
type LocaleStageOptions struct {
|
||||
Language string `json:"language"`
|
||||
}
|
||||
|
||||
func (LocaleStageOptions) isStageOptions() {}
|
||||
|
||||
func NewLocaleStageOptions(language string) *LocaleStageOptions {
|
||||
return &LocaleStageOptions{
|
||||
Language: language,
|
||||
}
|
||||
}
|
||||
|
||||
func NewLocaleStage(options *LocaleStageOptions) *Stage {
|
||||
return &Stage{
|
||||
Name: "org.osbuild.locale",
|
||||
Options: options,
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue