From 1a15034c275479b62d7f63fb981fee443ecca4c1 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sun, 16 Oct 2011 23:43:03 -0400 Subject: [PATCH] BF: nd_adddist to use Ubuntu's keyring for Ubuntu chroots --- tools/nd_adddist | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/nd_adddist b/tools/nd_adddist index 94bd35b..f5aa64d 100755 --- a/tools/nd_adddist +++ b/tools/nd_adddist @@ -21,6 +21,11 @@ fi # common options opts="--distribution $dist --debootstrap debootstrap --aptcache $aptcache" +if echo $family | grep -q ubuntu; then + # Use ubuntu's keyring since otherwise debootstrap would fail + opts+=" --debootstrapopts --keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg" +fi + mkdir -p ${cowbuilderroot}/cow for a in i386 amd64; do @@ -35,7 +40,7 @@ for a in i386 amd64; do cowbuilder --create --basepath ${cow} $opts \ --components "$components" \ --mirror "$mirror" \ - --debootstrapopts --arch --debootstrapopts $a \ + --debootstrapopts --arch=$a \ --othermirror "deb http://neuro.debian.net/debian $dist main contrib non-free" # deploy our key manually since archive with package is not yet # available at this point @@ -44,6 +49,6 @@ for a in i386 amd64; do cowbuilder --create --basepath ${cow} $opts \ --components "$components" \ --mirror "$mirror" \ - --debootstrapopts --arch --debootstrapopts $a + --debootstrapopts --arch=$a fi done -- 2.39.5