Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 

22 rader
836 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. sed -i "s/RELEASE/${RELEASE}/g" "${ROOTFS_DIR}/etc/apt/sources.list"
  5. sed -i "s/RELEASE/${RELEASE}/g" "${ROOTFS_DIR}/etc/apt/sources.list.d/raspi.list"
  6. if [ -n "$APT_PROXY" ]; then
  7. install -m 644 files/51cache "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache"
  8. sed "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache" -i -e "s|APT_PROXY|${APT_PROXY}|"
  9. else
  10. rm -f "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache"
  11. fi
  12. cat files/raspberrypi.gpg.key | gpg --dearmor > "${STAGE_WORK_DIR}/raspberrypi-archive-stable.gpg"
  13. install -m 644 "${STAGE_WORK_DIR}/raspberrypi-archive-stable.gpg" "${ROOTFS_DIR}/etc/apt/trusted.gpg.d/"
  14. on_chroot << EOF
  15. dpkg --add-architecture armhf
  16. apt-get update
  17. apt-get dist-upgrade -y
  18. EOF