distro: use new GenImageKernelOptions in ostreeDeployPipeline
The new `GenImageKernelOptions` will retrun all needed kernel options that are derived from the partition table. The only case - for now - is if the partition table contains a LUKS decice, where the uuid of it needs to be passed to the on the kernel command line so that it will get unlocked. Co-Authored-By: Achilleas Koutsou <achilleas@koutsou.net>
This commit is contained in:
parent
2c6e726c94
commit
34924c7af4
3 changed files with 18 additions and 12 deletions
|
|
@ -1102,6 +1102,11 @@ func ostreeDeployPipeline(
|
|||
))
|
||||
p.AddStage(osbuild.NewOSTreeConfigStage(ostreeConfigStageOptions(repoPath, true)))
|
||||
p.AddStage(osbuild.NewMkdirStage(efiMkdirStageOptions()))
|
||||
kernelOpts := []string{
|
||||
"console=tty0",
|
||||
"console=ttyS0",
|
||||
}
|
||||
kernelOpts = append(kernelOpts, osbuild.GenImageKernelOptions(pt)...)
|
||||
p.AddStage(osbuild.NewOSTreeDeployStage(
|
||||
&osbuild.OSTreeDeployStageOptions{
|
||||
OsName: osname,
|
||||
|
|
@ -1110,10 +1115,7 @@ func ostreeDeployPipeline(
|
|||
Rootfs: osbuild.Rootfs{
|
||||
Label: "root",
|
||||
},
|
||||
KernelOpts: []string{
|
||||
"console=tty0",
|
||||
"console=ttyS0",
|
||||
},
|
||||
KernelOpts: kernelOpts,
|
||||
},
|
||||
))
|
||||
p.AddStage(osbuild.NewOSTreeFillvarStage(
|
||||
|
|
|
|||
|
|
@ -802,6 +802,11 @@ func ostreeDeployPipeline(
|
|||
))
|
||||
p.AddStage(osbuild.NewOSTreeConfigStage(ostreeConfigStageOptions(repoPath, true)))
|
||||
p.AddStage(osbuild.NewMkdirStage(efiMkdirStageOptions()))
|
||||
kernelOpts := []string{
|
||||
"console=tty0",
|
||||
"console=ttyS0",
|
||||
}
|
||||
kernelOpts = append(kernelOpts, osbuild.GenImageKernelOptions(pt)...)
|
||||
p.AddStage(osbuild.NewOSTreeDeployStage(
|
||||
&osbuild.OSTreeDeployStageOptions{
|
||||
OsName: osname,
|
||||
|
|
@ -811,10 +816,7 @@ func ostreeDeployPipeline(
|
|||
Rootfs: osbuild.Rootfs{
|
||||
Label: "root",
|
||||
},
|
||||
KernelOpts: []string{
|
||||
"console=tty0",
|
||||
"console=ttyS0",
|
||||
},
|
||||
KernelOpts: kernelOpts,
|
||||
},
|
||||
))
|
||||
|
||||
|
|
|
|||
|
|
@ -802,6 +802,11 @@ func ostreeDeployPipeline(
|
|||
))
|
||||
p.AddStage(osbuild.NewOSTreeConfigStage(ostreeConfigStageOptions(repoPath, true)))
|
||||
p.AddStage(osbuild.NewMkdirStage(efiMkdirStageOptions()))
|
||||
kernelOpts := []string{
|
||||
"console=tty0",
|
||||
"console=ttyS0",
|
||||
}
|
||||
kernelOpts = append(kernelOpts, osbuild.GenImageKernelOptions(pt)...)
|
||||
p.AddStage(osbuild.NewOSTreeDeployStage(
|
||||
&osbuild.OSTreeDeployStageOptions{
|
||||
OsName: osname,
|
||||
|
|
@ -811,10 +816,7 @@ func ostreeDeployPipeline(
|
|||
Rootfs: osbuild.Rootfs{
|
||||
Label: "root",
|
||||
},
|
||||
KernelOpts: []string{
|
||||
"console=tty0",
|
||||
"console=ttyS0",
|
||||
},
|
||||
KernelOpts: kernelOpts,
|
||||
},
|
||||
))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue