1
0
mirror of synced 2026-02-12 10:27:13 +00:00
Commit Graph

29 Commits

Author SHA1 Message Date
Axel Beckert
0da2ed1365 Fix test suite failures in a Sid chroot
Problem was that the commented variant only was a new, $dist-security
one, but is also written if the security repo is disabled with other
distributions than sid/unstable.
2020-12-20 08:47:31 +01:00
Axel Beckert
eab2940bf6 Reimplement $dist/updates vs $dist-security more backwards-compatible
This reverts most code, but not the implemented functionality of
commit 2fba5cb90e.

Requiring a config file change to still be able to install old
distributions would make a bump of the major version necessary
according to Semantic Versioning. Let's avoid that:

The list of distributions with the old path scheme is finite and will
never change again. Hence it's ok and especially backwards compatible
to hardcode this list in hooks/debian/20-setup-apt.

It's also less and more obvious (but not necessarily easier to read)
code. But it's all in one place and not scattered over three files.
And it's just one line instead like a dozen or two dozens.

Closes: #972749 (kinda again)
2020-12-19 07:38:37 +01:00
Axel Beckert
e8897649b7 Fix mostly trailing whitespace in generated sources.list 2020-12-19 06:49:29 +01:00
Axel Beckert
2fba5cb90e Debian DomUs: Distinguish between $dist/updates and $dist-security
From Debian 11 Bullseye onwards, debian uses $dist-security instead of
$dist/updates as distribution part in /etc/apt/sources.list.

Mark those distributions with the old-style subdirectory path with
"security-subdir" in distributions.conf.

Thanks to Paul Wise for the bug report (and hence reminding me of
this) and for the suggestions on how to implement this (even if I
didn't follow them for the sake of simplicity and no additional
dependencies).

Closes: #972749
2020-12-19 06:49:29 +01:00
Axel Beckert
555ce383d3 Switch from /usr/lib/xen-tools/ to /usr/share/xen-tools/ to properly adhere FHS 2013-04-05 20:19:22 +02:00
Axel Beckert
c39628cbe4 Overwork TLS disabling on Debian and Ubuntu 2013-01-18 01:26:11 +01:00
Axel Beckert
b3c834935a Remove white-space and comment differences between common/20-setup-apt and debian/20-setup-apt 2012-06-04 18:39:31 +02:00
Axel Beckert
db77d621e7 hooks/debian/20-setup-apt: Use blacklist for libc6-xen instead of whitelist 2012-06-04 18:38:22 +02:00
Alex Tomlins
b0bae98746 Use configured apt_proxy in guests. 2011-03-31 09:39:39 +01:00
Axel Beckert
0f99b8b995 Use apt-config dump to determine Dom0's APT proxy settings.
This is the official way, needs no own parsing (therefore less
fault-prone) and shorter. Also fixes Debian bug #560011 -- the manual
parsing did not catch all syntax variants.

Also add some comments before /etc/apt/sources.list generation in the
Ubuntu hooks.
2010-08-03 15:59:10 +02:00
Stéphane Jourdois
aaa6cdc60c Replace single quotes by doubles quotes in scripts
This helps make t/quoted-strings.t pass.
2010-07-16 16:27:42 +02:00
Stéphane Jourdois
09f38740c8 Use dom0 resolv.conf when chrooting
Temporarily use resolv.conf from dom0 when chrooting into domU,
to be able to run apt-get and yum inside chroot.

This permits to use different nameservers in domU, and does not
break install nor offline update from dom0.
2010-07-10 10:51:38 +02:00
Axel Beckert
e1c1793232 Do not add security support if we're installing Sid 2010-05-23 21:40:30 +02:00
Axel Beckert
df82d28c3c Refactoring: Make check for sources.list more readable 2010-05-23 21:38:11 +02:00
Axel Beckert
f007a6e7c5 Also check /etc/apt/sources.list.d for security updates 2010-03-26 20:52:43 +01:00
Axel Beckert
110498e5b8 First check if /etc/apt/sources.list exists, then grep it. If it doesn't exist enable security updates by default 2010-03-26 20:51:35 +01:00
Axel Beckert
b9c1b50873 Just check for the string 'security' in sources.list, so it also matches local and ubuntu mirrors (LP: #309750) 2010-03-26 20:46:13 +01:00
steve
634453b122 2007-06-11 16:41:27 by steve
Only add Debian Sources for security.debian.org to the guest if
 enabled upon the host.
2007-06-11 16:41:27 +00:00
steve
8580e93a93 2007-06-04 05:59:42 by steve
Updated.
2007-06-04 05:59:42 +00:00
steve
a8705d4bd5 2006-12-26 15:43:41 by steve
Make sure we use the correct dist in the security list.
2006-12-26 15:43:41 +00:00
steve
0d42b3e9e0 2006-11-19 19:41:34 by steve
Fixups for test cases.
2006-11-19 19:41:36 +00:00
steve
203adbb5cc 2006-11-15 14:31:33 by steve
Don't touch TLS if we're on a 64 bit host.

  See #397933
2006-11-15 14:31:34 +00:00
steve
1abc474dfc 2006-11-15 14:28:38 by steve
Fetch libc6-xen from the configured apt source.

  See #397784
2006-11-15 14:28:38 +00:00
steve
d27df26181 2006-08-18 15:08:24 by steve
1.  Copy "resolv.conf" before running apt-get update / yum update.
      Without this DNS is probably not available/working.

  2.  Copy /etc/sudoers from the host, if we're installing sudo.
2006-08-18 15:08:24 +00:00
steve
6314c2a133 2006-08-03 15:12:25 by steve
1.  Setup a HTTP proxy for apt on the guests if present on the host.
  2.  Make the ubuntu script identical to the debian one.
2006-08-03 15:12:26 +00:00
steve
b413aae0fb 2006-06-15 07:47:02 by steve
BUGFIX:  *really* allow tests to succeed prior to installation.
2006-06-15 07:47:05 +00:00
steve
c1e4d3531b 2006-06-15 07:42:59 by steve
Source common.sh from the parent directory if the global installation
 isn't found.
  This allows "make test" to succeed *before* the tools are installed.
2006-06-15 07:42:59 +00:00
steve
d10e0ef0f2 2006-06-09 13:36:14 by steve
Use a fully qualified path to the 'common.sh', so we don't need to
 use chdir() when running our hooks
2006-06-09 13:36:14 +00:00
steve
efa1df08de 2006-06-09 10:30:37 by steve
Added to the repository.  These are almost straight copies of the
 previous hook scripts except they are now Debian-specific.

  They also each log their start and finish and optional information
 via the use of the ../common.sh file.

  No major changes anticipated.
2006-06-09 10:30:37 +00:00