/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to initramfs-tools-hook

  • Committer: Teddy Hogeborn
  • Date: 2013-10-13 16:57:10 UTC
  • mfrom: (237.7.172 trunk)
  • Revision ID: teddy@recompile.se-20131013165710-y695wckw4jmujvma
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# This script will be run by 'mkinitramfs' when it creates the image.
4
4
# Its job is to decide which files to install, then install them into
5
5
# the staging area, where the initramfs is being created.  This
6
 
# happens when a new 'linux-image' package is installed, or when the
 
6
# happens when a new 'linux-image' package is installed, or when an
7
7
# administrator runs 'update-initramfs' by hand to update an initramfs
8
8
# image.
9
9
 
147
147
    fi
148
148
done
149
149
 
150
 
# GPGME needs /usr/bin/gpg
151
 
if [ ! -e "${DESTDIR}/usr/bin/gpg" \
152
 
    -a -n "`ls \"${DESTDIR}\"/usr/lib/libgpgme.so* \
153
 
                2>/dev/null`" ]; then
154
 
    copy_exec /usr/bin/gpg
155
 
fi
 
150
# GPGME needs GnuPG
 
151
libgpgme11_version="`dpkg-query --showformat='${Version}' --show libgpgme11`"
 
152
if dpkg --compare-versions "$libgpgme11_version" ge 1.4.1-0.1; then
 
153
    gpg=/usr/bin/gpg2
 
154
else
 
155
    gpg=/usr/bin/gpg
 
156
fi
 
157
if [ ! -e "${DESTDIR}$gpg" ]; then
 
158
    copy_exec "$gpg"
 
159
fi
 
160
unset gpg
 
161
unset libgpgme11_version
156
162
 
157
163
# Config files
158
164
for file in /etc/mandos/plugin-runner.conf; do