#!/bin/sh set -e #Ensure the root partition is as large as it can be, because we may #have enlarged the disk image btrfs filesystem resize max / #Ensure the /src directory exists mkdir -p /src #Retrieve the staging-filler if [ -e /src/staging-filler ] then cd /src/staging-filler git pull origin master cd - else git clone ssh://git@trove.genivi.baserock.com/ct/genivi/genivi-staging-fillers-armv7 /src/staging-filler fi #Ensure the cache and temp directories exist mkdir -p /src/cache mkdir -p /src/tmp #Create morph.conf cat >/src/morph.conf <