chore: don't append initrd= to the kernel command line

I believe it serves no purpose in GRUB config: GRUB pre-loads
`initramfs` into memory anyways, so kernel doesn't need to know, nor has
now way to load it from anywhere.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
This commit is contained in:
Andrey Smirnov 2022-02-18 13:54:21 +03:00
parent 4d5cd66538
commit b7a1e04310
No known key found for this signature in database
GPG Key ID: 7B26396447AB6DFD

View File

@ -7,7 +7,6 @@ package install
import (
"fmt"
"log"
"path/filepath"
"github.com/talos-systems/go-blockdevice/blockdevice"
"github.com/talos-systems/go-procfs/procfs"
@ -273,8 +272,6 @@ func (i *Installer) Install(seq runtime.Sequence) (err error) {
return nil
}
i.cmdline.Append("initrd", filepath.Join("/", string(i.Next), constants.InitramfsAsset))
var conf *grub.Config
if i.bootloader == nil {
conf = grub.NewConfig(i.cmdline.String())