Skip to content

Commit

Permalink
lvh: make vda the default root device
Browse files Browse the repository at this point in the history
RHEL8 kernels only boot using virtio. The other kernels we build
support IDE and virtio. Make vda the default so that we don't need
to add vda / hda support to the builder.

Signed-off-by: Lorenz Bauer <[email protected]>
  • Loading branch information
lmb authored and kkourt committed Jan 26, 2024
1 parent ed0c99d commit 5ef552b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/lvh/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func RunCommand() *cobra.Command {
cmd.Flags().StringVar(&rcnf.Mem, "mem", "4G", "RAM size (-m)")
cmd.Flags().StringVar(&rcnf.CPUKind, "cpu-kind", "kvm64", "CPU kind to use (-cpu), has no effect when KVM is disabled")
cmd.Flags().IntVar(&rcnf.QemuMonitorPort, "qemu-monitor-port", 0, "Port for QEMU monitor")
cmd.Flags().StringVar(&rcnf.RootDev, "root-dev", "hda", "type of root device (hda or vda)")
cmd.Flags().StringVar(&rcnf.RootDev, "root-dev", "vda", "type of root device (hda or vda)")
cmd.Flags().BoolVarP(&rcnf.Verbose, "verbose", "v", false, "Print qemu command before running it")

return cmd
Expand Down

0 comments on commit 5ef552b

Please sign in to comment.