Created
May 23, 2016 08:46
-
-
Save vicamo/8ae20eaa8c38ea04b0371d3c447ef5a7 to your computer and use it in GitHub Desktop.
script to create ubuntu rootfs overlay for silos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
SILO=021 | |
TEAM=ci-train-ppa-service | |
ARCH=armhf | |
RELEASE=vivid | |
PACKAGES=$(wget -q -O - "http://ppa.launchpad.net/${TEAM}/landing-${SILO}/ubuntu/dists/${RELEASE}/main/binary-${ARCH}/Packages.gz" | gzip -cd | grep ^Package: | grep -v -- -dev\$ | cut -d: -f2) | |
set -e | |
if [ ! -d overlay ] ; then mkdir overlay ; fi | |
for PACKAGE in ${PACKAGES} ; do | |
build/tools/pull-lp-bin.py -a ${ARCH} -t ${TEAM} -p landing-${SILO} ${PACKAGE} ${RELEASE} -o overlay | |
done | |
for d in overlay/*.deb ; do | |
dpkg-deb -x $d overlay | |
done | |
rm -fv overlay/*.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment