[Bug 309750] [NEW] etch.d/20-setup-apt script never enables security update sources
Randall Blecher
randallb at gmail.com
Fri Dec 19 16:08:48 UTC 2008
Public bug reported:
Binary package hint: xen-tools
When using xen-create-image to create a Debian Etch image, the apt
sources for security.debian.org are always commented out in the created
/etc/apt/sources.list file.
The script /usr/lib/xen-tools/etch.d/20-setup-apt is supposed to check
the host's apt sources to see if security updates are enabled. If they
are, it is supposed to enable them on the guest image. However, it
checks for the Debian security sources, not the Ubuntu security sources,
so it always thinks that the host's security updates are disabled.
The following snippet in /usr/lib/xen-tools/etch.d/20-setup-apt should
be updated to reflect Ubuntu's security update sources:
#
# If the host system has security support then enable that here too.
#
if ( grep ^deb.*security.debian.org /etc/apt/sources.list >/dev/null 2>/dev/null ) ; then
cat <<E_O_APT >> ${prefix}/etc/apt/sources.list
#
# Security updates
#
deb http://security.debian.org/ ${dist}/updates main contrib non-free
deb-src http://security.debian.org/ ${dist}/updates main contrib non-free
E_O_APT
else
cat <<E_O_APT >> ${prefix}/etc/apt/sources.list
#
# Security updates - Uncomment to enable.
#
# deb http://security.debian.org/ ${dist}/updates main contrib non-free
# deb-src http://security.debian.org/ ${dist}/updates main contrib non-free
E_O_APT
fi
** Affects: xen-tools (Ubuntu)
Importance: Undecided
Status: New
--
etch.d/20-setup-apt script never enables security update sources
https://bugs.launchpad.net/bugs/309750
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list