layout 846 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. set -e
  3. source $(dirname $0)/version
  4. cd $(dirname $0)/..
  5. ARTIFACTS=$(pwd)/dist/artifacts
  6. BUILD=build
  7. INITRD_DIR=${BUILD}/initrd
  8. export ARTIFACTS BUILD INITRD_DIR VERSION
  9. ./scripts/layout-initrd
  10. ./scripts/layout-kernel
  11. DFS_ARCH=$(docker create ${DFS_IMAGE}${SUFFIX})
  12. trap "docker rm -fv ${DFS_ARCH} >/dev/null" EXIT
  13. docker export ${DFS_ARCH} | tar xf - -C ${INITRD_DIR} --exclude=usr/bin/docker* \
  14. --exclude=usr/share/git-core \
  15. --exclude=usr/bin/git \
  16. --exclude=usr/bin/ssh \
  17. --exclude=usr/libexec/git-core \
  18. usr
  19. ./scripts/hash-initrd