Skip to content

Commit

Permalink
Merge pull request firecracker-microvm#84 from defhacks/initrd
Browse files Browse the repository at this point in the history
add initrd option
  • Loading branch information
Kern-- authored Apr 22, 2022
2 parents 9f1b639 + 21c0c5e commit 8ed4f5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ type options struct {
FcBinary string `long:"firecracker-binary" description:"Path to firecracker binary"`
FcKernelImage string `long:"kernel" description:"Path to the kernel image" default:"./vmlinux"`
FcKernelCmdLine string `long:"kernel-opts" description:"Kernel commandline" default:"ro console=ttyS0 noapic reboot=k panic=1 pci=off nomodules"`
FcInitrd string `long:"initrd-path" description:"Path to initrd"`
FcRootDrivePath string `long:"root-drive" description:"Path to root disk image"`
FcRootPartUUID string `long:"root-partition" description:"Root partition UUID"`
FcAdditionalDrives []string `long:"add-drive" description:"Path to additional drive, suffixed with :ro or :rw, can be specified multiple times"`
Expand Down Expand Up @@ -146,6 +147,7 @@ func (opts *options) getFirecrackerConfig() (firecracker.Config, error) {
FifoLogWriter: fifo,
KernelImagePath: opts.FcKernelImage,
KernelArgs: opts.FcKernelCmdLine,
InitrdPath: opts.FcInitrd,
Drives: blockDevices,
NetworkInterfaces: NICs,
VsockDevices: vsocks,
Expand Down

0 comments on commit 8ed4f5e

Please sign in to comment.