Skip to content

Commit

Permalink
Wired in the openrov-arduino project to the image build
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianAdams committed Jul 22, 2014
1 parent 5e0c904 commit 20fefdd
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -2,3 +2,5 @@ work
node_modules

.vagrant

*.img
19 changes: 19 additions & 0 deletions extendpartitionsize.sh
@@ -0,0 +1,19 @@
#!/bin/sh
set -e

if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root or with sudo" 1>&2
exit 1
fi

echo "d
n
p
1
+8G
p
w
" | fdisk /dev/sda1

touch /var/_RESIZE_ROOT_
14 changes: 10 additions & 4 deletions steps/04_customize_image.sh
Expand Up @@ -7,6 +7,7 @@ export OUTPUT_IMAGE=$DIR/output/OpenROV.img

. $DIR/lib/libtools.sh
. $DIR/lib/libmount.sh
. $DIR/versions.sh

checkroot

Expand All @@ -28,7 +29,7 @@ if [ ! "$1" = "--reuse-step4" ]; then

IMAGE_DIR_NAME=$( dirname $STEP_04_IMAGE )

if [ ! -d $IMAGE_DIR_NAME ]
if [ ! -d $IMAGE_DIR_NAME ]
then
mkdir -p "$IMAGE_DIR_NAME"
fi
Expand Down Expand Up @@ -76,10 +77,15 @@ userdel -r -f ubuntu
echo "rov ALL=NOPASSWD: /opt/openrov/linux/" >> /etc/sudoers
echo -----------------------------
echo Get pre-packaged deb packages
echo -----------------------------
wget -P /tmp/packages/ http://openrov-software-nightlies.s3-us-west-2.amazonaws.com/arduino-firmware/openrov-arduino-firmware_${OROV_ARDUINO_FIRMWARE_VERSION}_all.deb /tmp/packages/
echo -----------------------------
echo Installing packages
echo -----------------------------
ls -1 /tmp/packages/openrov-*.deb | grep -viw "openrov-emmc*" | xargs dpkg -i --force-overwrite
ls -1 /tmp/packages/openrov-*.deb | grep -viw "openrov-emmc*" | xargs dpkg -i --force-overwrite
echo -----------------------------
echo Cleanup home directory
Expand All @@ -88,7 +94,7 @@ cd /home
find . -type d -not -name rov -and -not -name . | xargs rm -rf
echo -----------------------------
echo Setting up network
echo Setting up network
echo -----------------------------
#fix hostname
Expand Down Expand Up @@ -202,7 +208,7 @@ echo "> $OUTPUT_IMAGE"
cp $STEP_04_IMAGE $OUTPUT_IMAGE

cd $OUTPUT_DIR_NAME
cd $DIR
cd $DIR

echo -----------------------------
echo Copying packages
Expand Down
1 change: 1 addition & 0 deletions versions.sh
Expand Up @@ -18,3 +18,4 @@ export AVRDUDE_VERSION=6.0.1-1
export CLOUD9_VERSION=0.7.0-2
export SAMBA_CONFIG_VERSION=0.1-1
export EMMCCOPY_VERSION=0.1-0
export OROV_ARDUINO_FIRMWARE_VERSION=1.0-17-gf39e27b-master

0 comments on commit 20fefdd

Please sign in to comment.