98-clean-chroot: check existence of aptitude binary via $ROOTCMD.
authorMichael Prokop <mika@grml.org>
Sun, 10 Jul 2011 13:53:18 +0000 (15:53 +0200)
committerMichael Prokop <mika@grml.org>
Sun, 10 Jul 2011 13:53:18 +0000 (15:53 +0200)
commit6d5124d02e3912ac0ca53c0f0af92ef9ebceae23
tree4956e43da99d866e3eaa49e46869482cde5248ba
parent4a05b54fec18a572de88ccf028fb1b5a1121ca0c
98-clean-chroot: check existence of aptitude binary via $ROOTCMD.

/usr/bin/aptitude might point to /etc/alternatives/aptitude which
points to e.g. /usr/bin/aptitude-curses. When testing for
precense of /usr/bin/aptitude the test might fail because test(1)
dereferences symbolic links. So make sure to check existence of
aptitude binary inside $target using $ROOTCMD.
etc/grml/fai/config/hooks/instsoft.GRMLBASE