Though a compromise solution would be to register as sda only if the unplug of the original sda device succeeded / is going to be tried. Otherwise it's just going to cause a kernel bug.
I think xen_unplug_emulated_devices() is called sufficiently early you could choose the name when the driver is init'ed, so something like the attached patch (completely untested, may not even compile). But even so, if you rename the xen block device, you will be running /dev/sdX with a non-standard block major and block minor number (you are not changing the block major / minor numbers). I can't help but think that's a recipe for disaster. ** Patch added: "completely untested illustrative patch for dynamically chosing name of device" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/684875/+attachment/1754610/+files/blkfront.devname.patch -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in ubuntu. https://bugs.launchpad.net/bugs/684875 Title: Patch to Natty 2.6.37-virtual breaks non-EC2 users -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs