Source

stacklet / specs / distro / gentoo / gentoo.latest.x86.boot.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.gentoo</imports>
  <xi:include href="gentoo.latest.x86.boot.properties.xml"/>
  <stk:spec>
    <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:directory>
      <loc>/etc/kernels</loc>
    </stk:directory>
    <stk:directory>
      <loc>/boot/grub</loc>
    </stk:directory>
    <stk:file>
      <loc>/etc/kernels</loc>
      <pattern>_build.assetLoc_/kernel-config-*</pattern>
    </stk:file>    
    <stk:package>
      <update>all</update>
      <add>
        genkernel
        gentoo-sources
      </add>
    </stk:package>
    <stk:command>
      genkernel all
    </stk:command>
    <stk:command>
      cd /boot &amp;&amp; ln -sf initramfs* initrd
    </stk:command>
    <stk:kernel>
      <name>kernel-genkernel*</name>
      <options> root=_image.rootDevice_ ro</options>
      <grubConfig>/boot/grub/grub.conf</grubConfig>
    </stk:kernel>
  </stk:spec>
</stk:spec>