sonic-buildimage/scripts
LuiSzee 3ef7b560ec
[build][arm64] fix debian source for arm64 bullseye docker image (#12778)
Why I did it
arm64 bullseye docker image source is set to jessie for VERSION_CODENAME is miss.

shil@localhost:~/sonic-buildimage$ docker run -it multiarch/debian-debootstrap:arm64-bullseye bash
root@b2e2fea86e2d:/# cat /etc/os-release | grep VERSION_CODENAME | cut -d= -f2
root@b2e2fea86e2d:/# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux bullseye/sid"
NAME="Debian GNU/Linux"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

How I did it
if DISTRO is NULL, find it in /etc/apt/sources.list

root@b2e2fea86e2d:/# cat /etc/apt/sources.list | grep deb.debian.org | awk '{print $3}'
bullseye
root@b2e2fea86e2d:/# cat /etc/apt/sources.list
deb http://deb.debian.org/debian bullseye main
root@b2e2fea86e2d:/#
2022-12-03 23:04:36 -08:00
..
j2cli [dockers] label SONiC Docker with manifest (#5939) 2021-04-26 13:51:50 -07:00
build_debian_base_system.sh Ported Marvell armhf build on amd64 host for debian buster to use cross-comp… (#8035) 2022-07-21 14:15:16 -07:00
build_kvm_image.sh [Build] Fix the build unstalbe issue caused by the kvm not ready (#12180) 2022-09-27 06:55:19 +08:00
build_mirror_config.sh [Build] Support j2 template for debian sources (#12557) 2022-11-09 08:09:53 +08:00
collect_build_version_files.sh 02.Version cache - docker cache build framework (#12001) 2022-12-02 08:28:45 +08:00
collect_docker_version_files.sh 02.Version cache - docker cache build framework (#12001) 2022-12-02 08:28:45 +08:00
collect_host_image_version_files.sh 02.Version cache - docker cache build framework (#12001) 2022-12-02 08:28:45 +08:00
convert-pfx-cert-format.sh Simplify the function to covert pfx certificate (#5086) 2020-08-01 20:07:20 +08:00
dbg_files.sh Create the src archive in target/ when INSTALL_DEBUG_TOOLS=y (#3323) 2019-08-28 09:29:48 -07:00
docker_version_control.sh [build] Fix issues found in reproducible build. (#10407) 2022-03-31 13:07:46 +08:00
generate_buildinfo_config.sh Recover "Support SONiC Reproduceable Build-debian/pip/web packages (#6255) 2020-12-21 15:31:10 +08:00
prepare_debian_image_buildinfo.sh Recover "Support SONiC Reproduceable Build-debian/pip/web packages (#6255) 2020-12-21 15:31:10 +08:00
prepare_docker_buildinfo.sh [build][arm64] fix debian source for arm64 bullseye docker image (#12778) 2022-12-03 23:04:36 -08:00
prepare_slave_container_buildinfo.sh [build][Bug]: Fix the command set_reproducible_mirrors not found issue (#10398) 2022-03-31 12:37:53 +08:00
process_log.sh [build]: add SONIC_CONFIG_BUILD_LOG_TIMESTAMP to add timestamp in build log (#4269) 2020-03-21 14:21:26 -07:00
sign_image.sh [Secure Boot] Support to sign swi image (#4627) 2020-06-09 15:25:17 +08:00
versions_manager.py [Build]: Fix host image debian package version issue (#10358) 2022-03-29 12:34:46 +08:00
wait_for_docker.sh [build]: wait up to 60 seconds for docker engine to start (#3067) 2019-06-22 14:40:05 -07:00