[285] in athena10
Install script snippet for OpenAFS metapackages
daemon@ATHENA.MIT.EDU (ghudson@MIT.EDU)
Mon Jun 30 12:06:52 2008
Date: Mon, 30 Jun 2008 12:06:08 -0400 (EDT)
From: ghudson@MIT.EDU
Message-Id: <200806301606.m5UG68k1011744@outgoing.mit.edu>
To: athena10@mit.edu
For the possible benefit of the SIPB Debathena maintainers, here is
the code snippet I wound up using in install-athena10.sh to select
which OpenAFS metapackages to install:
------
modules_want=$(dpkg-query -W -f '${Source} ${Package}\n' 'linux-image-*' | \
sed -nre 's/^linux-(meta|latest[^ ]*) linux-image-(.*)$/openafs-modules-\2/p')
modules=
for m in $modules_want; do
aptitude show $m > /dev/null && modules="$modules $m"
done
if [ -z "$modules" ]; then
error "An OpenAFS modules metapackage for your kernel is not available."
fi
output "Installing OpenAFS kernel metapackage"
apt-get -y install "$modules"
------
(Adding "$modules" to the aptitude install line should also work.)