ia64/xen-unstable

changeset 19572:8b152638adaa

stubdoms: handle cdrom devices in the config file

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Apr 23 16:22:48 2009 +0100 (2009-04-23)
parents 3ccd0f0dba5b
children 026957d523f9
files stubdom/stubdom-dm
line diff
     1.1 --- a/stubdom/stubdom-dm	Thu Apr 23 12:21:29 2009 +0100
     1.2 +++ b/stubdom/stubdom-dm	Thu Apr 23 16:22:48 2009 +0100
     1.3 @@ -112,6 +112,8 @@ do
     1.4      vbd_disk=`xenstore-read $i/params`
     1.5      vbd_type=`xenstore-read $i/type`
     1.6      vbd_dev=`xenstore-read $i/dev`
     1.7 +    vbd_front=`xenstore-read $i/frontend`
     1.8 +    vbd_devtype=`xenstore-read $vbd_front/device-type`
     1.9      if [ $vbd_type = "file" ]
    1.10      then
    1.11          vbd_type="tap:aio"
    1.12 @@ -120,7 +122,7 @@ do
    1.13      then
    1.14          echo -n "," >> /etc/xen/stubdoms/$domname-dm
    1.15      fi
    1.16 -    echo -n "'$vbd_type:$vbd_disk,$vbd_dev,$vbd_mode'" >> /etc/xen/stubdoms/$domname-dm
    1.17 +    echo -n "'$vbd_type:$vbd_disk,$vbd_dev:$vbd_devtype,$vbd_mode'" >> /etc/xen/stubdoms/$domname-dm
    1.18      j=$(( $j + 1 ))
    1.19  done
    1.20  echo " ] " >> /etc/xen/stubdoms/$domname-dm