Skip to content

Commit

Permalink
Debian ISOs do not contain signed Release files
Browse files Browse the repository at this point in the history
pass --no-check-gpg to debootstrap
pass --allow-untrusted to aptitude
  • Loading branch information
evgeni committed Aug 1, 2012
1 parent ab690ec commit 10690a9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
10 changes: 8 additions & 2 deletions chroot-script
Expand Up @@ -18,9 +18,15 @@

# use aptitude only if it's available
if [ -x /usr/bin/aptitude ] ; then
APTINSTALL="aptitude -y --without-recommends install $DPKG_OPTIONS"
APTUPDATE='aptitude update'
APTUPGRADE='aptitude -y safe-upgrade'
# Debian ISOs do not contain signed Release files
if [ -n "$ISO" ] ; then
APTINSTALL="aptitude -y --allow-untrusted --without-recommends install $DPKG_OPTIONS"
APTUPGRADE='aptitude -y --allow-untrusted safe-upgrade'
else
APTINSTALL="aptitude -y --without-recommends install $DPKG_OPTIONS"
APTUPGRADE='aptitude -y safe-upgrade'
fi
else
APTINSTALL="apt-get --force-yes -y --no-install-recommends install $DPKG_OPTIONS"
APTUPDATE='apt-get update'
Expand Down
6 changes: 6 additions & 0 deletions grml-debootstrap
Expand Up @@ -853,6 +853,12 @@ ISODIR=${ISO##file:}
ISODIR=${ISODIR%%/}
# }}}

# Debian ISOs do not contain signed Release files {{{
if [ -n "$ISO" ] ; then
DEBOOTSTRAP_OPT="$DEBOOTSTRAP_OPT --no-check-gpg"
fi
# }}}

# create filesystem {{{
mkfs() {
if [ -n "$DIRECTORY" ] ; then
Expand Down

0 comments on commit 10690a9

Please sign in to comment.