In jessie and earlier, this has to be done with a global option.

In later releases, it can be done by putting some options in [ ]
in the relevant sources list entry.

Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com>
---
 Osstest/Debian.pm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index 5e74e86e..c1e75020 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -951,6 +951,19 @@ sub preseed_backports_packages ($$$$@) {
 
        my $apt_insert='';
        my $extra_rune='';
+       if ($suite =~ m/wheezy|jessie/) {
+           # this has global effect, unfortunately
+           $extra_rune = <<END;
+d=/etc/apt/apt.conf.d
+mkdir -p \$d
+cat >\$d/50osstestsnapshot <<EOF
+Acquire::Check-Valid-Until false;
+EOF
+END
+       } else {
+           $apt_insert = '[check-valid-until=no]';
+       }
+
        preseed_hook_command($ho, 'late_command', $sfx, <<END);
 #!/bin/sh
 set -ex
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to