]> git.pld-linux.org Git - packages/cryptsetup-luks.git/blob - cryptsetup-luks-initramfs-passdev-hook
- package python binding (as python-pycryptsetup)
[packages/cryptsetup-luks.git] / cryptsetup-luks-initramfs-passdev-hook
1 #!/bin/sh
2
3 set -e
4
5 PREREQ="cryptroot"
6
7 prereqs()
8 {
9         echo "$PREREQ"
10 }
11
12 case $1 in
13 prereqs)
14         prereqs
15         exit 0
16         ;;
17 esac
18
19 . /usr/share/initramfs-tools/hook-functions
20
21 # Hooks for adding filesystem modules to the initramfs when the passdev
22 # keyscript is used
23
24 # Check whether the passdev script has been included
25 if [ ! -x "${DESTDIR}/keyscripts/passdev" ]; then
26         exit 0
27 fi
28
29 # The filesystem type of the removable device is probed at boot-time, so
30 # we add a generous list of filesystems to include. This also helps with
31 # recovery situation as including e.g. the vfat module might help a user
32 # who needs to create a new cryptkey (using a backup of a keyfile) on
33 # a windows-machine for example.
34
35 # This list needs to be kept in sync with the one defined in passdev.c
36 for fs in ext3 ext2 vfat reiserfs xfs isofs udf; do
37         manual_add_modules "$fs" > /dev/null 2>&1 || true
38 done
39 exit 0
40
This page took 0.046583 seconds and 3 git commands to generate.