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