From 987ba66db757f1351da0d6ae040ae989e0cdbfb5 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Wed, 21 Oct 2015 12:54:05 +0200 Subject: [PATCH] , put apt keys into seperate files, rm an existing 10fai if it's not created --- lib/subroutines | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/subroutines b/lib/subroutines index 5db462569..105836452 100755 --- a/lib/subroutines +++ b/lib/subroutines @@ -1050,6 +1050,8 @@ task_repository () { APT::Get::AllowUnauthenticated "true"; Aptitude::CmdLine::Ignore-Trust-Violations yes; EOF + else + rm -f $FAI_ROOT/etc/apt/apt.conf.d/10fai fi # add apt keys for signed repositories @@ -1064,7 +1066,7 @@ EOF for keyfile in ${classes:-}; do [ ! -f $FAI/package_config/$keyfile.asc ] && continue echo -n "Loading APT key from $keyfile.asc " - cat $FAI/package_config/$keyfile.asc | $ROOTCMD apt-key add - + cat $FAI/package_config/$keyfile.asc | $ROOTCMD apt-key --keyring /etc/apt/trusted.gpg.d/$keyfile.asc.gpg add - unset keys["$keyfile.asc"] done