Merge remote-tracking branch 'origin/feature/7461-persistence.conf-in-whisperback...
[tails/lblissett.git] / wiki / src / contribute / build / custom_mirror.mdwn
blobb55b3fbdf59857f683e63a53613955d2492b718d
1 [[!meta title="Using a custom Debian mirror to build Tails images"]]
3 [[!toc levels=2]]
5 # What?
7 You may want to use a Debian mirror different from the one
8 `live-build` uses by default.
10 # Why?
12 1. You want to use a mirror that is faster for you, e.g. one that is
13    in the country you live in, or a local Debian mirror.
14 2. You have [[configured squid-deb-proxy|build/squid-deb-proxy]] to
15    only allow access to a given set of domains.
17 # How?
19 You need to set options in live-build's configuration file
20 (`/etc/live/build.conf`), e.g.:
22         LB_MIRROR_BOOTSTRAP="http://ftp.us.debian.org/debian/"
23         LB_MIRROR_BOOTSTRAP_SECURITY="http://security.debian.org/"
25         LB_MIRROR_CHROOT="http://ftp.us.debian.org/debian/"
26         LB_MIRROR_CHROOT_SECURITY="http://security.debian.org/"
28         LB_MIRROR_BINARY="http://ftp.us.debian.org/debian/"
29         LB_MIRROR_BINARY_SECURITY="http://security.debian.org/"
31 See the `lb_config(1)` manpage for details.