Source

stacklet / specs / distro / arch / 2013.01 / arch.xenboot.xml

Full commit
<?xml version="1.0"?>
<stk:spec xmlns:stk="http://stacklet.com/specfile/v1"
          xmlns:xi="http://www.w3.org/2001/XInclude">
  <imports>stacklet.task.image.core stacklet.task.distro.arch</imports>
  <xi:include href="arch.xenboot.properties.xml"/>
  <stk:spec>
    <stk:command>
      sed -i.orig 's/^MODULES=""/MODULES="xen_blkfront"/' /etc/mkinitcpio.conf;
      mkinitcpio -g /boot/initramfs-linux.img -k `ls -d /lib/modules/3* | cut -d "/" -f4`;
      mkdir /boot/grub;
    </stk:command>
    <stk:file>
      <loc>/etc</loc>
      <name>fstab</name>
      <exists>replace</exists>
      <stk:content filters='substitute_props'>
        <loc>_build.assetLoc_</loc>
        <name>fstab.xen</name>
      </stk:content>
    </stk:file>
    <stk:kernel>
      <name>vmlinuz</name>
      <options> root=_image.rootDevice_ ro quiet</options>
      <grubConfig>/boot/grub/menu.lst</grubConfig>
    </stk:kernel>
    <stk:command>
      sed -i.orig 's/^#h0:/h0:/' /etc/inittab;
    </stk:command>
    <stk:command>
      sed -i 's/ gdm/ /' /etc/rc.conf;
    </stk:command>
    <stk:cleanup/>
  </stk:spec>
</stk:spec>