osbuild2: zipl install stage
New stage: org.osbuild.zipl.inst Signed-off-by: Achilleas Koutsou <achilleas@koutsou.net>
This commit is contained in:
parent
22faa79880
commit
0ed4f057c2
1 changed files with 32 additions and 0 deletions
32
internal/osbuild2/zipl_inst_stage.go
Normal file
32
internal/osbuild2/zipl_inst_stage.go
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
package osbuild2
|
||||
|
||||
// Install the Z Initial Program Loader
|
||||
|
||||
type ZiplInstStageOptions struct {
|
||||
Kernel string `json:"kernel"`
|
||||
|
||||
// The offset of the partition containing /boot
|
||||
Location uint64 `json:"location"`
|
||||
|
||||
SectorSize *uint64 `json:"sector-size,omitempty"`
|
||||
}
|
||||
|
||||
func (ZiplInstStageOptions) isStageOptions() {}
|
||||
|
||||
type ZiplInstStageDevices map[string]Device
|
||||
|
||||
func (ZiplInstStageDevices) isStageDevices() {}
|
||||
|
||||
type ZiplInstStageMounts []Mount
|
||||
|
||||
func (ZiplInstStageMounts) isStageMounts() {}
|
||||
|
||||
// Return a new zipl.inst stage. A device needs to be specified as 'disk' and root mountpoint must be provided
|
||||
func NewZiplInstStage(options *ZiplInstStageOptions, devices *CopyStageDevices, mounts *CopyStageMounts) *Stage {
|
||||
return &Stage{
|
||||
Type: "org.osbuild.zipl.inst",
|
||||
Options: options,
|
||||
Devices: devices,
|
||||
Mounts: mounts,
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue