CIP-dev archive mirror
 help / color / mirror / Atom feed
From: Felix Moessbauer <felix.moessbauer@siemens.com>
To: cip-dev@lists.cip-project.org
Cc: jan.kiszka@siemens.com, Adithya.Balakumar@toshiba-tsip.com,
	Felix Moessbauer <felix.moessbauer@siemens.com>
Subject: [isar-cip-core][PATCH] use ISAR snapshot infrastructure for sid
Date: Fri, 10 May 2024 15:07:16 +0200	[thread overview]
Message-ID: <20240510130716.152418-1-felix.moessbauer@siemens.com> (raw)

To have a stable base for debian sid, we need to pin the package set to
a fixed (known to be good) timestamp. Previously, this was done by
changing the apt sources list. As ISAR now supports to use snapshot
mirrors on-the-fly, we replace the fixed list with that logic.

This also makes it possible to later manually update the images (only
the non-immutable ones) from a running system, as the default apt
sources are not modified.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 conf/distro/cip-core-sid.conf            | 5 +++--
 conf/distro/cip-debian-sid-snapshot.list | 2 --
 2 files changed, 3 insertions(+), 4 deletions(-)
 delete mode 100644 conf/distro/cip-debian-sid-snapshot.list

diff --git a/conf/distro/cip-core-sid.conf b/conf/distro/cip-core-sid.conf
index 48f26ff..eefcbb5 100644
--- a/conf/distro/cip-core-sid.conf
+++ b/conf/distro/cip-core-sid.conf
@@ -12,8 +12,9 @@
 require conf/distro/debian-sid.conf
 require cip-core-common.inc
 
-DISTRO_APT_SOURCES = "conf/distro/cip-debian-sid-snapshot.list"
-HOST_DISTRO_APT_SOURCES = "${DISTRO_APT_SOURCES}"
+# corresponds to 20240211T000000Z
+ISAR_APT_SNAPSHOT_TIMESTAMP ?= "1707606000"
+ISAR_USE_APT_SNAPSHOT ?= "1"
 
 PREFERRED_VERSION_linux-cip ?= "6.1.%"
 PREFERRED_VERSION_linux-cip-rt ?= "6.1.%"
diff --git a/conf/distro/cip-debian-sid-snapshot.list b/conf/distro/cip-debian-sid-snapshot.list
deleted file mode 100644
index 874047b..0000000
--- a/conf/distro/cip-debian-sid-snapshot.list
+++ /dev/null
@@ -1,2 +0,0 @@
-deb	[check-valid-until=no trusted=yes] https://snapshot-cloudflare.debian.org/archive/debian/20240211T000000Z sid main
-deb-src	[check-valid-until=no trusted=yes] https://snapshot-cloudflare.debian.org/archive/debian/20240211T000000Z sid main
-- 
2.39.2



             reply	other threads:[~2024-05-10 13:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-10 13:07 Felix Moessbauer [this message]
2024-05-10 14:42 ` [isar-cip-core][PATCH] use ISAR snapshot infrastructure for sid Jan Kiszka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240510130716.152418-1-felix.moessbauer@siemens.com \
    --to=felix.moessbauer@siemens.com \
    --cc=Adithya.Balakumar@toshiba-tsip.com \
    --cc=cip-dev@lists.cip-project.org \
    --cc=jan.kiszka@siemens.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).