Skip to content

Commit

Permalink
When creating a Xen worker/chroot XMROOT/XMSWAP need to point to the
Browse files Browse the repository at this point in the history
devices if they were created by obsstoragesetup
  • Loading branch information
lbt committed Jul 21, 2010
1 parent 947241f commit ef9c313
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -1397,12 +1397,12 @@ for SPECFILE in "${SPECFILES[@]}" ; do
fi

if [ "$VM_TYPE" = 'xen' ]; then
XMROOT=file:$VM_IMAGE
XMROOT="file:$(readlink -f $VM_IMAGE)"
XMROOT=${XMROOT/#file:\/dev/phy:/dev}
XMROOT="disk=$XMROOT,hda1,w"
XMSWAP=
if test -n "$VM_SWAP" ; then
XMSWAP=file:$VM_SWAP
XMSWAP="file:$(readlink -f $VM_SWAP)"
XMSWAP=${XMSWAP/#file:\/dev/phy:/dev}
XMSWAP="disk=$XMSWAP,hda2,w"
fi
Expand Down

0 comments on commit ef9c313

Please sign in to comment.