Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed mirror to raspbian and overwrite template #5

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ cat > 01-run-chroot.sh <<EOF
# Disable dhcpcd - it has a conflict with cloud-init network config
systemctl mask dhcpcd

# fix sources list
echo 'deb {{mirror}} {{codename}} main contrib non-free rpi' > /etc/cloud/templates/sources.list.debian.tmpl

cat > /etc/cloud/cloud.cfg <<EOC
# The top level settings are used as module
# and system configuration.
Expand Down Expand Up @@ -184,8 +187,8 @@ system_info:
package_mirrors:
- arches: [default]
failsafe:
primary: http://deb.debian.org/debian
security: http://security.debian.org/
primary: http://raspbian.raspberrypi.org/raspbian/
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I had some problems with http://raspbian.raspberrypi.org/raspbian/ when enabling arm64 builds and switched to http://deb.debian.org/debian which worked fine for both arm32 and arm64, see 56aff01#diff-4d2a8eefdf2a9783512a35da4dc7676a66404b6f3826a8af9aad038722da6823R184

security: []
ssh_svcname: ssh
EOC
EOF
Expand Down