-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to set kernel on machine level #376
Conversation
this will allow us to set custom kernel and initrd on machine level like this
|
5da1ebf
to
1151914
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like my review was pending and wasn't ever posted. Sorry about that.
@@ -49,37 +49,37 @@ func warnLocalhost(variable string, value string) { | |||
Consider using an address that is valid on your network.` | |||
|
|||
if strings.Contains(value, "localhost") || | |||
strings.Contains(value, "127.0.0.1") || | |||
strings.Contains(value, "::1") { | |||
strings.Contains(value, "127.0.0.1") || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spurious go format changes shouldnt be included in this commit
CPUs int `short:"c" long:"cpus" description:"Number of CPUs to use for build VM (default: 2)"` | ||
Memory string `short:"m" long:"memory" description:"Amount of memory for build VM (default: 2048MB)"` | ||
ShowBoot bool `long:"show-boot" description:"Show boot/console messages from the fake machine"` | ||
KernelPath string `short:"k" long:"kernel" description:"kernel to use"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should make this option a little more dynamic, something like:
--fakemachine-backend-option kernel-path:kernel.img
if err = m.SetBackendOption("key", "value"); err != nil {
// show error to user
}
closing in favour of go-debos/fakemachine#192 |
depends on go-debos/fakemachine#119