Skip to content

Commit

Permalink
Avoid file-rc installation also in softupdate runs
Browse files Browse the repository at this point in the history
Thx, jimmy :)
  • Loading branch information
mika committed Nov 18, 2016
1 parent 52324cf commit e4cbc63
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions etc/grml/fai/config/hooks/instsoft.GRMLBASE
Expand Up @@ -59,14 +59,17 @@ EOF
# install software.
$ROOTCMD apt-get update

if $FILE_RC ; then
echo "Installing file-rc as FILE_RC class is enabled."
# 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
fi

if ! $ROOTCMD test -x /usr/bin/aptitude ; then
$ROOTCMD apt-get -y install aptitude
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

# make sure we can upgrade automatically,
# even with unsigned repos, but only if user wants it
if [ "${FAI_ALLOW_UNSIGNED:-}" = "1" ] ; then
Expand Down

0 comments on commit e4cbc63

Please sign in to comment.