On Mon, Aug 16, 2010 at 03:05:22PM +0100, Daniel P. Berrange wrote:
I don't know the internals of libguestfs that well, but is
filtering
out a harddisk really more trouble than filtering out a CDROM ?
Any IDE/SATA CDROM device will appear as /dev/[hsv]d[a-z] too, even
if it has a /dev/cdrom link. So AFAICT you need todo the same kind
of filtering for either disks or cdroms, and you loose 1 drive letter
in both cases :-(
Yes, thinking about this more, I think this is true.
Note we have to add it as the last drive anyway (since everyone
assumes the first drive added is /dev/sda). Which means it doesn't
have a fixed name, so we have to pass the name in as a kernel command
line parameter, so the small initrd knows what to mount.
Matt has also mentioned using udev to rename devices, and also that
this might be a good time to add some swap.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming blog:
http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora