- # Use ubuntu's keyring since otherwise debootstrap would fail
- opts+=" --debootstrapopts --keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg"
+ # Use ubuntu's keyring since otherwise debootstrap would fail
+ opts+=" --debootstrapopts --keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg"
+fi
+
+if echo $family | grep -q debian; then
+ # Use debian keyring since otherwise debootstrap would fail (on Ubuntu)
+ opts+=" --debootstrapopts --keyring=/usr/share/keyrings/debian-archive-keyring.gpg"