Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #41 from hypriot/add-firmware-and-fake-clock
Browse files Browse the repository at this point in the history
Add firmware and fake clock
  • Loading branch information
Govinda-Fichtner committed Apr 9, 2016
2 parents 2ca9bda + bc6e939 commit dd81255
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions builder/chroot-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ echo 'deb https://packagecloud.io/Hypriot/rpi/debian/ jessie main' > /etc/apt/so
# set up hypriot schatzkiste repository for generic packages
echo 'deb https://packagecloud.io/Hypriot/Schatzkiste/debian/ wheezy main' >> /etc/apt/sources.list.d/hypriot.list

wget -q -O - http://archive.raspberrypi.org/debian/raspberrypi.gpg.key | apt-key add -
echo 'deb http://archive.raspberrypi.org/debian/ jessie main' | tee /etc/apt/sources.list.d/raspberrypi.list

# reload package sources
apt-get update

Expand Down Expand Up @@ -62,6 +65,10 @@ proc /proc proc defaults 0 0
/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
" > /etc/fstab

# as the Pi does not have a hardware clock we need a fake one
apt-get install -y \
fake-hwclock

# install hypriot packages for docker-tools
apt-get install -y \
"docker-hypriot=${DOCKER_ENGINE_VERSION}" \
Expand Down
13 changes: 13 additions & 0 deletions builder/files/etc/apt/perferences.d/hypriot
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ensure that only Hypriot kernel packages get installed

Package: linux-headers-*-hypriotos*
Pin: origin packagecloud.io/hypriot/schatzkiste
Pin-Priority: 1001

Package: libraspberrypi*
Pin: origin packagecloud.io/hypriot/schatzkiste
Pin-Priority: 1001

Package: raspberrypi-bootloader
Pin: origin packagecloud.io/hypriot/schatzkiste
Pin-Priority: 1001
7 changes: 7 additions & 0 deletions builder/files/etc/apt/perferences.d/raspberrypi
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ensure that the correct firmware packages from the
# Raspberry Pi Foundation get installed
# those packages are usually the most recent ones

Package: firmware-*
Pin: origin archive.raspberrypi.org
Pin-Priority: 1001

0 comments on commit dd81255

Please sign in to comment.