RFC: Adding prepareapt (repository) task to softupdate action

Jan-Marek Glogowski glogow at fbihome.de
Tue Nov 22 14:53:27 CET 2011


Hi,

I want to add the prepareapt task to the softupdate action in the upcoming 
4.0 release.

I'm using softupdate to update our systems including 'dist-upgrade's. 
Currently I'm hooking the updatebase task, but it's more logical to add 
the prepareapt task to the softupdate action and hook it for the apt 
configuration. My updatebase hook almost mimics the prepareapt task.

There is also the problem to install untrusted packages during 
softupdate, as prepareapt creates the apt configuration for unsigned 
repositories (FAI_ALLOW_UNSIGNED / 10fai), which is later removed in the 
finish task.

The current repository task seems to be idempotent, so there shouldn't be 
any problems.

Any objections?

Regards,

Jan-Marek

-----------------------------

Signed-off-by: Jan-Marek Glogowski <glogow at fbihome.de>

>From 083b31b30cf6745c543782a97d328cb5aa3dea41 Mon Sep 17 00:00:00 2001
From: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Tue, 22 Nov 2011 14:35:32 +0100
Subject: [PATCH] Add repository task to softupdate action

Allows usage of untrused repositories for softupdate and applies
changed APT configration, so 'dist-upgrade's can be run without
hooking updatebase.
---
  lib/subroutines |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/subroutines b/lib/subroutines
index 72fa2df..f9721ff 100644
--- a/lib/subroutines
+++ b/lib/subroutines
@@ -655,6 +655,7 @@ task_softupdate() {

      task mirror
      task debconf
+    task repository
      task updatebase
      task instsoft
      task configure
-- 
1.7.2.5



More information about the linux-fai-devel mailing list