Skip to content

Instantly share code, notes, and snippets.

@vicamo
Created May 23, 2016 08:46
Show Gist options
  • Save vicamo/8ae20eaa8c38ea04b0371d3c447ef5a7 to your computer and use it in GitHub Desktop.
Save vicamo/8ae20eaa8c38ea04b0371d3c447ef5a7 to your computer and use it in GitHub Desktop.
script to create ubuntu rootfs overlay for silos
#!/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