You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
503 B

  1. #!/bin/bash -e
  2. install -m 644 files/sources.list "${ROOTFS_DIR}/etc/apt/"
  3. install -m 644 files/raspi.list "${ROOTFS_DIR}/etc/apt/sources.list.d/"
  4. if [ -n "$APT_PROXY" ]; then
  5. install -m 644 files/51cache "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache"
  6. sed "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache" -i -e "s|APT_PROXY|${APT_PROXY}|"
  7. else
  8. rm -f "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache"
  9. fi
  10. on_chroot apt-key add - < files/raspberrypi.gpg.key
  11. on_chroot << EOF
  12. apt-get update
  13. apt-get dist-upgrade -y
  14. EOF