aboutsummaryrefslogtreecommitdiff
path: root/linaro-hwpack-install
diff options
context:
space:
mode:
authorJames Tunnicliffe <james.tunnicliffe@linaro.org>2013-02-20 10:02:44 +0000
committerJames Tunnicliffe <james.tunnicliffe@linaro.org>2013-02-20 10:02:44 +0000
commit79371b976d25c2fcfd4831fc68e5106bdc0bfae4 (patch)
tree43476f5db4da5c2a645c43197d59603a3b9363af /linaro-hwpack-install
parenta044c598640ee549c00b40bfbccb19f7d3a7a498 (diff)
When installing hardware pack allow apt-get update from internet sources to fail.
Provide default for BoardConfig.bootloader_copy_files.
Diffstat (limited to 'linaro-hwpack-install')
-rwxr-xr-xlinaro-hwpack-install20
1 files changed, 18 insertions, 2 deletions
diff --git a/linaro-hwpack-install b/linaro-hwpack-install
index 309ec73..2cbf1e7 100755
--- a/linaro-hwpack-install
+++ b/linaro-hwpack-install
@@ -173,8 +173,16 @@ setup_apt_sources() {
FORCE_OPTIONS=""
fi
+ # Do two updates. The first doesn't try to download package lists:
+ # * First update doesn't access net
+ # - not allowed to fail. Image file + hwpack should contain all packages
+ # needed to create image. If this update fails we have problems.
+ # * Second update may fail
+ # - If can't download package updates (the only difference between the two
+ # commands), we should still be OK.
echo "Updating apt package lists ..."
- $sudo apt-get $FORCE_OPTIONS -o "$APT_GET_OPTIONS" update -q
+ $sudo apt-get $FORCE_OPTIONS -o "$APT_GET_OPTIONS" update -q --no-download
+ $sudo apt-get $FORCE_OPTIONS -o "$APT_GET_OPTIONS" update -q || true
}
setup_ubuntu_rootfs() {
@@ -282,7 +290,15 @@ cleanup() {
if [ -x /sbin/initctl.REAL ]; then
mv -f /sbin/initctl.REAL /sbin/initctl
fi
- $sudo apt-get update -qq
+ # Do two updates. The first doesn't try to download package lists:
+ # * First update doesn't access net
+ # - not allowed to fail. Image file + hwpack should contain all packages
+ # needed to create image. If this update fails we have problems.
+ # * Second update may fail
+ # - If can't download package updates (the only difference between the two
+ # commands), we should still be OK.
+ $sudo apt-get update -qq --no-download
+ $sudo apt-get update -qq || true
fi
echo "Done"
}