X-Git-Url: http://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fhooks%2Finstsoft.GRMLBASE;h=0d6cae5d9c3233e4dd9b46b79b147a1d17987a89;hp=78a9f5724c8a0c0c81931a843f20d8dac00adfb9;hb=465346b41da7ba02a7609de03a7e49d325295c1c;hpb=454855354ae7fbb40f604b30760f5d35deb3357f diff --git a/etc/grml/fai/config/hooks/instsoft.GRMLBASE b/etc/grml/fai/config/hooks/instsoft.GRMLBASE index 78a9f57..0d6cae5 100755 --- a/etc/grml/fai/config/hooks/instsoft.GRMLBASE +++ b/etc/grml/fai/config/hooks/instsoft.GRMLBASE @@ -55,18 +55,18 @@ EOF $ROOTCMD ln -s /bin/true /usr/sbin/grub-probe fi - # newer aptitude versions won't remove essential packages using - # 'aptitude -f -y install file-rc' anymore, therefore force it: - $ROOTCMD aptitude -o Aptitude::ProblemResolver::Keep-All-Tier=60000 -f -y install file-rc + # Update package lists (so they exist at all), so we actually can + # install software. + $ROOTCMD apt-get update + + # newer aptitude versions won't remove essential packages using + # 'aptitude -f -y install file-rc' anymore, therefore force it: + $ROOTCMD aptitude -o Aptitude::ProblemResolver::Keep-All-Tier=60000 -f -y install file-rc if ! $ROOTCMD test -x /usr/bin/aptitude ; then $ROOTCMD apt-get -y install aptitude fi - # Update package lists (so they exist at all), so we actually can - # install software. - $ROOTCMD apt-get update - # make sure we can upgrade automatically, # even with unsigned repos, but only if user wants it if [ "${FAI_ALLOW_UNSIGNED:-}" = "1" ] ; then