]> xenbits.xensource.com Git - rumpuser-xen.git/commitdiff
rumprun: Make diskspec backward compatible with Xen 4.1
authorMartin Lucina <martin@lucina.net>
Sun, 23 Nov 2014 20:58:19 +0000 (21:58 +0100)
committerMartin Lucina <martin@lucina.net>
Sun, 23 Nov 2014 20:58:19 +0000 (21:58 +0100)
Xen 4.1 is used in Debian stable; the diskspec used by xl is not clearly
documented and is just a passthrough to the xm disk stanza. We need mode
'w' rather than 'rw' which is also understood by (at least) Xen 4.4.

Signed-off-by: Martin Lucina <martin@lucina.net>
app-tools/rumprun

index efeadd2239610352707e57df226bc6134fcdfdc3..9b0416b4507c2c0f83dd4db7b55beab7f759ec0d 100755 (executable)
@@ -152,7 +152,7 @@ run_xen() {
                                fstype=$(detect_fstype $image)
                                [ $? -ne 0 ] && err File $image: unknown fstype
                                vdev=hd$(echo $bindex | tr '[0-9]' '[a-j]')
-                               conf_disk="${conf_disk}'file:$image,$vdev,rw',"
+                               conf_disk="${conf_disk}'file:$image,$vdev,w',"
                                echo blk/${bindex}/type etfs >>${xenstore}
                                echo blk/${bindex}/fstype $fstype >>${xenstore}
                                echo blk/${bindex}/mountpoint $mountpoint\