X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fhooks%2Finstsoft.GRMLBASE;h=f5c22d8c1d1d670e6e98d24b2a07e5c9b08543ad;hp=78a9f5724c8a0c0c81931a843f20d8dac00adfb9;hb=4585f1e73a919832d6431f5333821dae6f0e411d;hpb=412c0bebc0bcf351ed58f5656a2145d02b0bb58e diff --git a/etc/grml/fai/config/hooks/instsoft.GRMLBASE b/etc/grml/fai/config/hooks/instsoft.GRMLBASE index 78a9f57..f5c22d8 100755 --- a/etc/grml/fai/config/hooks/instsoft.GRMLBASE +++ b/etc/grml/fai/config/hooks/instsoft.GRMLBASE @@ -55,17 +55,17 @@ 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 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 + # 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 # make sure we can upgrade automatically, # even with unsigned repos, but only if user wants it