Skip to content

Commit

Permalink
chore: don't append initrd= to the kernel command line
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
smira committed Feb 18, 2022
1 parent 4d5cd66 commit b7a1e04
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/installer/pkg/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit b7a1e04

Please sign in to comment.