Skip to content
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

Generate device.map from vm config #7

Open
jbergstroem opened this issue Nov 20, 2014 · 4 comments
Open

Generate device.map from vm config #7

jbergstroem opened this issue Nov 20, 2014 · 4 comments

Comments

@jbergstroem
Copy link
Contributor

Instead of creating a device.map it could be generated from devices in a vm config, then written into a temporary file removed after grub-bhyve is done. Parsing type would allow figuring out type (hd,cd). I guess name could be optionally provided is order is essential (otherwise top down ordering).

@jbergstroem
Copy link
Contributor Author

My suggested plan is to parse device type and use hdN for for virtio-blk, ahci-hd and cdN for ahci-cd. I'll just add them to device.map in order of appearance, same goes for numbering.

@allanjude
Copy link
Owner

We added a -b flag, to select the boot device. You might want to make that device be first.

@jbergstroem
Copy link
Contributor Author

@allanjude sure, I'll have that in mind.

@jbergstroem
Copy link
Contributor Author

Since bhyveucl -b would conflict with input_args.root passed to grub-bhyve (essentially the same thing), I don't think it sould be relevant when generating device.map or modifying the input to grub-bhyve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants