Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2013-10-27 20:45:26 +0100
committerPetter Reinholdtsen <pere@hungry.com>2013-10-27 20:45:26 +0100
commita290e9e856b457cf95429bc7c8fda1176c3ec0ce (patch)
tree01be23f65e59491087973acbf4e316de1d5d2aec /bin/freedombox-customize
parentb70f6b7ee0d28541d37cab0754dd81f0f0bb4156 (diff)
Fix Raspbian Pi build.
Diffstat (limited to 'bin/freedombox-customize')
-rwxr-xr-xbin/freedombox-customize8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/freedombox-customize b/bin/freedombox-customize
index e5f73a4..10974f2 100755
--- a/bin/freedombox-customize
+++ b/bin/freedombox-customize
@@ -18,6 +18,8 @@ set -x
rootdir="$1"
cd "$rootdir"
+echo info: building $MACHINE for $ARCHITECTURE to $DESTINATION
+
export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true
export LC_ALL=C LANGUAGE=C LANG=C
@@ -61,7 +63,9 @@ rm $rootdir/usr/sbin/policy-rc.d
# in a kernel too.
if [ "$MACHINE" = raspberry ] ; then
# Packages used by rpi-update to make Raspberry Pi bootable
- apt-get install -y git-core binutils ca-certificates wget kmod
+ chroot $rootdir \
+ apt-get install -y git-core binutils ca-certificates wget kmod
+
cat <<EOF > $rootdir/usr/lib/freedombox/setup.d/95_raspberry-pi
#!/bin/sh
wget https://raw.github.com/Hexxeh/rpi-update/master/rpi-update \
@@ -69,7 +73,7 @@ wget https://raw.github.com/Hexxeh/rpi-update/master/rpi-update \
chmod a+x /usr/bin/rpi-update
mkdir -p /lib/modules
touch /boot/start.elf
-chroot rpi-update > /root/rpi-update.log
+rpi-update > /root/rpi-update.log
EOF
chmod a+rx $rootdir/usr/lib/freedombox/setup.d/95_raspberry-pi
fi