how to use config-drive to attach another device to instance without cloud-init
I want to use 'config-drive' of 'nova boot' to add another cdrom for the instance. Then I can install some drivers during installing operating system.
Many instructions says, If an image does not have the cloud-init package installed, the image must be customized to run a script that mounts the config drive on boot, reads the data from the drive, and takes appropriate action such as adding the public key to an account.
There are 2 questions:
- How to use config-drive to add another cdrom with my image file?
- How to write that script if my image does not have the cloud-init?
Could anyone tell me how to achieve this?