Add security suite name override in debian-minimal
Add option to set the suite subpath after the release name for the security mirror URL independently in the debian-minimal element, since this can differ between mirrors. Change-Id: I4cc8f54fba012986423e30e19bff276208b8ad62
This commit is contained in:
parent
1e08be004b
commit
3919563e58
@ -17,6 +17,8 @@ mirroring (see ``debootsrap`` element documentation). However, the
|
|||||||
security repositories are separate for Debian, so we can not assume
|
security repositories are separate for Debian, so we can not assume
|
||||||
they exist at ``DIB_DISTRIBUTION_MIRROR``. If you do not wish to use
|
they exist at ``DIB_DISTRIBUTION_MIRROR``. If you do not wish to use
|
||||||
the upstream repository (from ``security.debian.org``) override it
|
the upstream repository (from ``security.debian.org``) override it
|
||||||
with ``DIB_DEBIAN_SECURITY_MIRROR``.
|
with ``DIB_DEBIAN_SECURITY_MIRROR``. The security suite name's subpath
|
||||||
|
can also be overridden to something other than ``/updates`` with the
|
||||||
|
``DIB_DEBIAN_SECURITY_SUBPATH`` variable.
|
||||||
|
|
||||||
.. element_deps::
|
.. element_deps::
|
||||||
|
@ -11,6 +11,7 @@ export DIB_DISTRIBUTION_MIRROR=${DIB_DISTRIBUTION_MIRROR:-http://deb.debian.org/
|
|||||||
# choice is for people to add it separately, otherwise we use
|
# choice is for people to add it separately, otherwise we use
|
||||||
# upstream.
|
# upstream.
|
||||||
DIB_DEBIAN_SECURITY_MIRROR=${DIB_DEBIAN_SECURITY_MIRROR:-http://security.debian.org/}
|
DIB_DEBIAN_SECURITY_MIRROR=${DIB_DEBIAN_SECURITY_MIRROR:-http://security.debian.org/}
|
||||||
|
DIB_DEBIAN_SECURITY_SUBPATH=${DIB_DEBIAN_SECURITY_SUBPATH:-/updates}
|
||||||
|
|
||||||
export DIB_DEBIAN_COMPONENTS=${DIB_DEBIAN_COMPONENTS:-main}
|
export DIB_DEBIAN_COMPONENTS=${DIB_DEBIAN_COMPONENTS:-main}
|
||||||
export DIB_DEBIAN_COMPONENTS_WS=${DIB_DEBIAN_COMPONENTS//,/ }
|
export DIB_DEBIAN_COMPONENTS_WS=${DIB_DEBIAN_COMPONENTS//,/ }
|
||||||
@ -19,7 +20,7 @@ DIB_APT_SOURCES_CONF_DEFAULT=\
|
|||||||
"default:deb ${DIB_DISTRIBUTION_MIRROR} ${DIB_RELEASE} ${DIB_DEBIAN_COMPONENTS_WS}
|
"default:deb ${DIB_DISTRIBUTION_MIRROR} ${DIB_RELEASE} ${DIB_DEBIAN_COMPONENTS_WS}
|
||||||
backports:deb ${DIB_DISTRIBUTION_MIRROR} ${DIB_RELEASE}-backports ${DIB_DEBIAN_COMPONENTS_WS}
|
backports:deb ${DIB_DISTRIBUTION_MIRROR} ${DIB_RELEASE}-backports ${DIB_DEBIAN_COMPONENTS_WS}
|
||||||
updates:deb ${DIB_DISTRIBUTION_MIRROR} ${DIB_RELEASE}-updates ${DIB_DEBIAN_COMPONENTS_WS}
|
updates:deb ${DIB_DISTRIBUTION_MIRROR} ${DIB_RELEASE}-updates ${DIB_DEBIAN_COMPONENTS_WS}
|
||||||
security:deb ${DIB_DEBIAN_SECURITY_MIRROR} ${DIB_RELEASE}/updates ${DIB_DEBIAN_COMPONENTS_WS}
|
security:deb ${DIB_DEBIAN_SECURITY_MIRROR} ${DIB_RELEASE}${DIB_DEBIAN_SECURITY_SUBPATH} ${DIB_DEBIAN_COMPONENTS_WS}
|
||||||
"
|
"
|
||||||
|
|
||||||
if [ "${DIB_RELEASE}" = "testing" -o "${DIB_RELEASE}" = "unstable" ]; then
|
if [ "${DIB_RELEASE}" = "testing" -o "${DIB_RELEASE}" = "unstable" ]; then
|
||||||
|
7
releasenotes/notes/debian-security-b4f677a148fdf9c9.yaml
Normal file
7
releasenotes/notes/debian-security-b4f677a148fdf9c9.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
A new variable ``DIB_DEBIAN_SECURITY_SUBPATH`` is added to
|
||||||
|
override the suite subpath of security repositories. Previously
|
||||||
|
this was hard-coded to the upstream repository layout, which may
|
||||||
|
not always match the mirror's layout.
|
Loading…
Reference in New Issue
Block a user