| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | PREREQ="cryptroot" |
| 6 | |
| 7 | prereqsscip-shell shell shell-project 0.0.0 prereqs().() |
| 8 | { |
| 9 | echoscip-shell system . . echo. "$PREREQ" |
| 10 | } |
| 11 | |
| 12 | case "$1" in |
| 13 | prereqs) |
| 14 | prereqsscip-shell shell shell-project 0.0.0 prereqs(). |
| 15 | exit 0 |
| 16 | ;; |
| 17 | esac |
| 18 | |
| 19 | . /usr/share/initramfs-tools/hook-functionsscip-shell source . . `/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 [scip-shell system . . `[`. ! -x "$DESTDIR/lib/cryptsetup/scripts/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 | manual_add_modules ext4 ext3 ext2 vfat btrfs reiserfs xfs jfs ntfs iso9660 udf |
| 37 | exit 0 |
| 38 |