[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sources.list



On 2020-08-17 01:30, andy pugh wrote:
On Sun, 16 Aug 2020 at 17:13, Fernando Toledo <ftoledo@docksud.com.ar> wrote:

you can put in files:

config/archives/your-repo.list.chroot
config/archives/your-repo.list.binary
config/archives/your-repo.key

Yes, and I am doing that for our own packages.
But is it appropriate or expected to have an entry there for the
standard debian repositories?

Those *.list files are for lists of packages to install, not for repositories.

I think you might be missing --mirror-binary and possibly (see 'man lb_config') --mirror-binary-security lines in auto/config.

For what it's worth, here's what I'm using to build a derivative (using https not http). Many entries are inappropriate for your use case, but I've left everything as-is:

auto/config:
---
lb config noauto \
--image-name 'lithium-RC5' \
--mirror-bootstrap http://ftp.riken.jp/Linux/debian/debian/ \
--mirror-binary https://deb.debian.org/debian \
--mirror-binary-security https://deb.debian.org/debian-security \
--debootstrap-options "--include=apt-transport-https,ca-certificates,openssl" \
--apt-options "-y" \
--apt-recommends false \
--apt-source-archives false \
--apt-indices true \
--architectures amd64 -k amd64 \
--distribution lithium \
--parent-distribution buster \
--archive-areas "main contrib non-free" \
--clean \
--debian-installer live \
--debian-installer-gui true \
--debian-installer-distribution buster \
--firmware-binary true \
--firmware-chroot true \
--iso-application BunsenLabs \
--iso-publisher 'BunsenLabs Linux; https://www.bunsenlabs.org/; admin@bunsenlabs.org' \
--iso-volume 'BUNSENLABS_LITHIUM' \
--memtest memtest86+ \
--security true \
--updates true \
--uefi-secure-boot enable \
"${@}"

And the preseed file (I had to use a local repo to get https for debian security):
---
d-i passwd/root-login boolean false
d-i mirror/country string manual
d-i mirror/protocol string https
d-i mirror/https/hostname string deb.debian.org
d-i mirror/https/directory string /debian
d-i mirror/https/proxy string
d-i apt-setup/use_mirror boolean true
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
d-i apt-setup/services-select multiselect updates
d-i apt-setup/local0/repository \
string https://deb.debian.org/debian-security buster/updates main contrib non-free
d-i apt-setup/local0/comment string Debian security updates
d-i apt-setup/enable-source-repositories boolean false
d-i apt-setup/disable-cdrom-entries boolean true
d-i clock-setup/utc boolean true
d-i preseed/late_command string \
    apt-install bunsen-os-release bunsen-python-apt-template ;\
    in-target /usr/local/bin/bunsen_preseed ;\
    in-target rm -f /usr/local/bin/bunsen_preseed

--
John


Reply to: