Skip to content

Commit

Permalink
Add AllowInsecureRepositories to suppress errors for newer versions o…
Browse files Browse the repository at this point in the history
…f APT
  • Loading branch information
Markus Lindberg authored and Thomas Lange committed Apr 9, 2018
1 parent 42abe35 commit c79b7a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/fai-make-nfsroot
Expand Up @@ -395,6 +395,7 @@ create_nfsroot() {
cat >$NFSROOT/etc/apt/apt.conf.d/10fai <<EOF
APT::Install-Recommends no;
APT::Get::AllowUnauthenticated true;
Acquire::AllowInsecureRepositories "true";
Aptitude::CmdLine::Ignore-Trust-Violations yes;
Acquire::Languages none;
Acquire::Check-Valid-Until false;
Expand Down
1 change: 1 addition & 0 deletions lib/subroutines
Expand Up @@ -1097,6 +1097,7 @@ task_repository () {
if [ X$FAI_ALLOW_UNSIGNED = X1 ]; then
cat <<EOF > $FAI_ROOT/etc/apt/apt.conf.d/10fai
APT::Get::AllowUnauthenticated "true";
Acquire::AllowInsecureRepositories "true";
Aptitude::CmdLine::Ignore-Trust-Violations yes;
EOF
else
Expand Down

0 comments on commit c79b7a7

Please sign in to comment.