Drop --force-yes option from chroot-scripts' apt-get usage
authorMichael Prokop <mika@grml.org>
Tue, 9 Jun 2015 22:02:02 +0000 (00:02 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 10 Jun 2015 06:42:20 +0000 (08:42 +0200)
The --force-yes option may lead to installation of packages that
fail GPG verification checks. If someone really needs the
--force-yes option (to actually really force package
installation) then this should be handled via DPKG_OPTIONS
instead.

Fixes #62 @ github

chroot-script

index 0e31f70..e14ca21 100755 (executable)
@@ -36,9 +36,9 @@ if [ -x /usr/bin/aptitude ] ; then
       APTUPGRADE="aptitude -y safe-upgrade $DPKG_OPTIONS"
    fi
 else
-   APTINSTALL="apt-get --force-yes -y --no-install-recommends install $DPKG_OPTIONS"
+   APTINSTALL="apt-get -y --no-install-recommends install $DPKG_OPTIONS"
    APTUPDATE="apt-get update $DPKG_OPTIONS"
-   APTUPGRADE="apt-get --force-yes -y upgrade $DPKG_OPTIONS"
+   APTUPGRADE="apt-get -y upgrade $DPKG_OPTIONS"
 fi
 
 if [ -z "$STAGES" ] ; then