diff options
author | Andrew Cady <d@jerkface.net> | 2016-04-20 14:52:02 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-04-20 14:53:04 -0400 |
commit | 1bddec3db035c4878a91fba7ce585b4ac727a89f (patch) | |
tree | 9f56d5731c9998b46f919ebca4d2b25f54a8f72a /initramfs-tools | |
parent | 1961664ec151439d896f90ffdb3b7bd6cbe18fb9 (diff) |
add various missing dependencies
Diffstat (limited to 'initramfs-tools')
-rwxr-xr-x | initramfs-tools/hooks/samizdat | 22 |
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 | ||
4 | CopyExec() { copy_exec "$@" || exit 1; } | ||
5 | |||
4 | . /usr/share/initramfs-tools/hook-functions | 6 | . /usr/share/initramfs-tools/hook-functions |
5 | 7 | ||
6 | for f in ./old-school/*; do copy_exec "$f" /bin; done | 8 | for f in ./old-school/*; do CopyExec "$f" /bin; done |
7 | 9 | ||
8 | path_execs='mountpoint openvt' | 10 | # TODO: check samizdat source to see what it copies |
11 | path_execs='mountpoint openvt rsync gpg2 gpg-agent pinentry-curses truncate cryptsetup mkfs.btrfs' | ||
9 | 12 | ||
10 | for c in $path_execs; do copy_exec "$(which $c)" /bin; done | 13 | for c in $path_execs; do CopyExec "$(which $c)" /bin; done |
11 | 14 | ||
12 | copy_exec /bin/openvt /bin/OpenVT | 15 | CopyExec /bin/openvt /bin/OpenVT |
13 | 16 | ||
14 | absolute_path_copies='/lib/terminfo/l/linux' | 17 | absolute_path_copies='/lib/terminfo/l/linux' |
15 | 18 | ||
16 | for f in $absolute_path_copies; do copy_exec "$f" "$f"; done | 19 | for f in $absolute_path_copies; do CopyExec "$f" "$f"; done |
17 | 20 | ||
18 | samizdat_execs_dir=/home/d/src/samizdat # TODO | 21 | samizdat_execs_dir=/home/d/src/samizdat # TODO |
19 | samizdat_execs='wait_for_files samizdat-pinentry dynmenu' | 22 | samizdat_execs='wait_for_files samizdat-pinentry dynmenu src/samizdat-password-agent src/samizdat-gpg-agent' |
23 | |||
24 | for c in $samizdat_execs; do CopyExec ${samizdat_execs_dir}/$c /bin; done | ||
20 | 25 | ||
21 | for c in $samizdat_execs; do copy_exec ${samizdat_execs_dir}/$c /bin; done | 26 | CopyExec vol_id.txt /lib/samizdat/vol_id.txt |
22 | 27 | ||
23 | copy_exec vol_id.txt /lib/samizdat/vol_id.txt | 28 | modules='loop xts dm-crypt' |
29 | for m in $modules; do force_load "$m" || exit 1; done | ||
24 | 30 | ||
25 | exit 0 | 31 | exit 0 |