1. stacklet
  2. stacklet

Source

stacklet / specs / distro / arch / 2013.01 / arch.lightweight.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.user.password stacklet.task.distro.arch</imports>
  <xi:include href="arch.lightweight.properties.xml"/>
  <stk:properties>
    <name>properties.xml</name>
  </stk:properties>
  <stk:spec>
    <stk:directory>
      <loc>/dev</loc>
    </stk:directory>
    <stk:directory>
      <loc>/tmp</loc>
    </stk:directory>
    <stk:directory>
      <loc>/var/cache/pacman/pkg/</loc>
    </stk:directory>
    <stk:device name='tty' spec='c 5 0'/>
    <stk:device name='random' spec='c 1 8'/>
    <stk:device name='urandom' spec='c 1 9'/>
    <stk:file>
      <loc>/var/cache/pacman/pkg</loc>
      <name>corePackages</name>
      <exists>replace</exists>
      <stk:content>
        <loc>_build.assetLoc_</loc>
        <name>corePackages</name>
      </stk:content>
    </stk:file>
    <stk:bootstrap proxy='_proxy_'>
      <url>_bootstrap.url_</url>
      <server>_pacman.server_</server>
      <pacmanKeys>_pacman.keys_</pacmanKeys>
    </stk:bootstrap>
    <stk:command>
      ln -s /proc/self/fd /dev/fd 
    </stk:command>
    <stk:package proxy='_proxy_'>
      <add>
        acpid
        audit
        base
        cpio
        curl
        elfutils
        iptables
        krb5
        lsb-release
        lsof
        makedev
        netcat
        net-tools
        openssh
        sqlite3
        sudo
        syslog-ng
        unzip
        vim
      </add>
    </stk:package>
    <stk:password>
      <user>root</user>
      <password>password</password>
    </stk:password>
    <stk:command>
      cp -f /etc/resolv.conf.pacorig /etc/resolv.conf;
      rm -f /.PKGINFO /.INSTALL /.CHANGELOG;
    </stk:command>
    <stk:command>
      sed -i.orig 's/^#en_US.UTF/en_US.UTF/' /etc/locale.gen;
      locale-gen
    </stk:command>
    <stk:command>
      echo _image.hostname_ > /etc/hostname
    </stk:command>
    <stk:command>
      systemctl enable dhcpcd@eth0.service;
      systemctl enable sshd.service;
      systemctl enable cronie.service;
      systemctl enable syslog-ng.service
    </stk:command>
  </stk:spec>
</stk:spec>