[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] xen-create-image puts "swap" before "root"


  • To: XenUsers <xen-users@xxxxxxxxxxxxx>
  • From: Alexandre Kouznetsov <alk@xxxxxxxxxx>
  • Date: Fri, 16 May 2014 16:04:44 -0500
  • Delivery-date: Fri, 16 May 2014 21:05:57 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>

Hello.

I'm setting up a Xen hypervisor on a Debian Wheezy, and facing a issue I wanted to deal with since a long time ago.

It's about the order in which xen-create-image handles DomU's disks. By design of /usr/bin/xen-create-image perl script, the "swap" partition always goes in the first place on the list, followed by "/" and then the rest of them.

Between other things, this setup makes it tricky for PyGrub, there has to be specific code in xm.tmpl to make the "/" to appear in the first place.

I'm wondering why is it so. I would expect the "/" to go first, followed by swap and then the rest of them. Even better, if a partition schema from /etc/xen-tools/partitions.d is used, why not to use the disks in the same order as they appear in the partitions file, for sake of predictability.

This is not feature request. There must be a reason to handle the partitions in this order. I'm very curious to know which is it, before proposing any change.

Greetings.

--
Alexandre Kouznetsov


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.