summaryrefslogtreecommitdiff
path: root/initramfs-tools
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-20 14:52:02 -0400
committerAndrew Cady <d@jerkface.net>2016-04-20 14:53:04 -0400
commit1bddec3db035c4878a91fba7ce585b4ac727a89f (patch)
tree9f56d5731c9998b46f919ebca4d2b25f54a8f72a /initramfs-tools
parent1961664ec151439d896f90ffdb3b7bd6cbe18fb9 (diff)
add various missing dependencies
Diffstat (limited to 'initramfs-tools')
-rwxr-xr-xinitramfs-tools/hooks/samizdat22
1 files changed, 14 insertions, 8 deletions
diff --git a/initramfs-tools/hooks/samizdat b/initramfs-tools/hooks/samizdat
index 3415f18..2dffdd1 100755
--- a/initramfs-tools/hooks/samizdat
+++ b/initramfs-tools/hooks/samizdat
@@ -1,25 +1,31 @@
1#!/bin/sh 1#!/bin/sh
2[ "$1" = prereqs ] && { echo; exit; } 2[ "$1" = prereqs ] && { echo; exit; }
3 3
4CopyExec() { copy_exec "$@" || exit 1; }
5
4. /usr/share/initramfs-tools/hook-functions 6. /usr/share/initramfs-tools/hook-functions
5 7
6for f in ./old-school/*; do copy_exec "$f" /bin; done 8for f in ./old-school/*; do CopyExec "$f" /bin; done
7 9
8path_execs='mountpoint openvt' 10# TODO: check samizdat source to see what it copies
11path_execs='mountpoint openvt rsync gpg2 gpg-agent pinentry-curses truncate cryptsetup mkfs.btrfs'
9 12
10for c in $path_execs; do copy_exec "$(which $c)" /bin; done 13for c in $path_execs; do CopyExec "$(which $c)" /bin; done
11 14
12copy_exec /bin/openvt /bin/OpenVT 15CopyExec /bin/openvt /bin/OpenVT
13 16
14absolute_path_copies='/lib/terminfo/l/linux' 17absolute_path_copies='/lib/terminfo/l/linux'
15 18
16for f in $absolute_path_copies; do copy_exec "$f" "$f"; done 19for f in $absolute_path_copies; do CopyExec "$f" "$f"; done
17 20
18samizdat_execs_dir=/home/d/src/samizdat # TODO 21samizdat_execs_dir=/home/d/src/samizdat # TODO
19samizdat_execs='wait_for_files samizdat-pinentry dynmenu' 22samizdat_execs='wait_for_files samizdat-pinentry dynmenu src/samizdat-password-agent src/samizdat-gpg-agent'
23
24for c in $samizdat_execs; do CopyExec ${samizdat_execs_dir}/$c /bin; done
20 25
21for c in $samizdat_execs; do copy_exec ${samizdat_execs_dir}/$c /bin; done 26CopyExec vol_id.txt /lib/samizdat/vol_id.txt
22 27
23copy_exec vol_id.txt /lib/samizdat/vol_id.txt 28modules='loop xts dm-crypt'
29for m in $modules; do force_load "$m" || exit 1; done
24 30
25exit 0 31exit 0