=== modified file 'linaro-hwpack-install'
@@ -173,8 +173,16 @@
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 --ignore-missing
+ $sudo apt-get $FORCE_OPTIONS -o "$APT_GET_OPTIONS" update -q || true
}
setup_ubuntu_rootfs() {
@@ -282,7 +290,15 @@
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 --ignore-missing
+ $sudo apt-get update -qq || true
fi
echo "Done"
}
=== modified file 'linaro_image_tools/media_create/boards.py'
@@ -257,6 +257,7 @@
with self.hardwarepack_handler:
self.hwpack_format = self.hardwarepack_handler.get_format()
if (self.hwpack_format == self.hardwarepack_handler.FORMAT_1):
+ self.bootloader_copy_files = None
return
if (self.hwpack_format != self.hardwarepack_handler.FORMAT_1):