pipeline: add locale stage

This was left out from 7625d26ff5.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2019-09-29 14:31:24 +02:00
parent 5fbc734a15
commit 6c49acbd51
3 changed files with 34 additions and 6 deletions

View file

@ -5,7 +5,7 @@ type FixBLSStageOptions struct {
func (FixBLSStageOptions) isStageOptions() {}
func NewFIXBLSStage() *Stage {
func NewFixBLSStage() *Stage {
return &Stage{
Name: "org.osbuild.fix-bls",
}

View file

@ -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,
})
}

View 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,
}
}