]> git.pld-linux.org Git - packages/cryptsetup-luks.git/blame - cryptsetup-luks-initramfs-passdev-hook
- package python binding (as python-pycryptsetup)
[packages/cryptsetup-luks.git] / cryptsetup-luks-initramfs-passdev-hook
CommitLineData
b32f9594
JR
1#!/bin/sh
2
3set -e
4
5PREREQ="cryptroot"
6
7prereqs()
8{
9 echo "$PREREQ"
10}
11
12case $1 in
13prereqs)
14 prereqs
15 exit 0
16 ;;
17esac
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
25if [ ! -x "${DESTDIR}/keyscripts/passdev" ]; then
26 exit 0
27fi
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
36for fs in ext3 ext2 vfat reiserfs xfs isofs udf; do
37 manual_add_modules "$fs" > /dev/null 2>&1 || true
38done
39exit 0
40
This page took 0.127577 seconds and 4 git commands to generate.