Blame internal/osbuild/fix_bls_stage.go

Packit 63bb0d
package osbuild
Packit 63bb0d
Packit 63bb0d
// A FixBLSStageOptions struct is empty, as the stage takes no options.
Packit 63bb0d
//
Packit 63bb0d
// The FixBLSStage fixes the paths in the Boot Loader Specification
Packit 63bb0d
// snippets installed into /boot. grub2's kernel install script will
Packit 63bb0d
// try to guess the correct path to the kernel and bootloader, and adjust
Packit 63bb0d
// the boot loader scripts accordingly. When run under OSBuild this does
Packit 63bb0d
// not work correctly, so this stage essentially reverts the "fixup".
Packit 63bb0d
type FixBLSStageOptions struct {
Packit 63bb0d
}
Packit 63bb0d
Packit 63bb0d
func (FixBLSStageOptions) isStageOptions() {}
Packit 63bb0d
Packit 63bb0d
// NewFixBLSStage creates a new FixBLSStage.
Packit 63bb0d
func NewFixBLSStage() *Stage {
Packit 63bb0d
	return &Stage{
Packit 63bb0d
		Name:    "org.osbuild.fix-bls",
Packit 63bb0d
		Options: &FixBLSStageOptions{},
Packit 63bb0d
	}
Packit 63bb0d
}