Source

stacklet / specs / distro / fedora / 18 / fedora.18.x86.boot.xml

<?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.red</imports>
  <xi:include href="fedora.18.x86.boot.properties.xml"/>
  <stk:spec>
    <stk:directory>
      <loc>/boot/grub</loc>
    </stk:directory>
    <stk:file>
      <loc>/etc</loc>
      <name>fstab</name>
      <exists>replace</exists>
      <stk:content filters='substitute_props'>
        <loc>_build.assetLoc_</loc>
        <name>fstab</name>
      </stk:content>
    </stk:file>
    <stk:package proxy='_proxy_'>
      <update>all</update>
      <add>
        grub2
      </add>
    </stk:package>
    <stk:kernel>
      <name>vmlinuz-.*</name>
      <options> root=_image.rootDevice_ ro quiet</options>
      <grubConfig>/boot/grub/grub.conf</grubConfig>
    </stk:kernel>
    <stk:command>
      cd /etc; 
      ln -sf ../boot/grub/grub.conf grub.conf
    </stk:command>
    <stk:file>
      <loc>/etc/sysconfig</loc>
      <name>kernel</name>
      <exists>replace</exists>
      <stk:content>
        <loc>_build.assetLoc_</loc>
        <name>sysconfig-kernel</name>
      </stk:content>
    </stk:file>
    <stk:command>
      package-cleanup -y --oldkernels --count=1
    </stk:command>
  </stk:spec>
</stk:spec>