package-rootfs 291 B

12345678910111213141516
  1. #!/bin/bash
  2. set -e
  3. set -o pipefail
  4. cd $(dirname $0)/..
  5. source scripts/version
  6. BUILD=$(pwd)/build
  7. INITRD_DIR=${BUILD}/initrd
  8. ARTIFACTS=$(pwd)/dist/artifacts
  9. mkdir -p ${ARTIFACTS}
  10. tar czf ${ARTIFACTS}/rootfs${SUFFIX}.tar.gz --exclude lib/modules --exclude lib/firmware -C ${INITRD_DIR} .