#!/bin/sh [ "$1" = prereqs ] && { echo; exit; } CopyExec() { copy_exec "$@" || exit 1; } . /usr/share/initramfs-tools/hook-functions for f in ./old-school/*; do CopyExec "$f" /bin; done # TODO: check samizdat source to see what it copies path_execs='mountpoint openvt rsync gpg2 gpg-agent pinentry-curses truncate cryptsetup mkfs.btrfs' for c in $path_execs; do CopyExec "$(which $c)" /bin; done CopyExec /bin/openvt /bin/OpenVT absolute_path_copies='/lib/terminfo/l/linux' for f in $absolute_path_copies; do CopyExec "$f" "$f"; done samizdat_execs_dir=/home/d/src/samizdat # TODO samizdat_execs='wait_for_files samizdat-pinentry dynmenu src/samizdat-password-agent src/samizdat-gpg-agent' for c in $samizdat_execs; do CopyExec ${samizdat_execs_dir}/$c /bin; done CopyExec vol_id.txt /lib/samizdat/vol_id.txt modules='loop xts dm-crypt' for m in $modules; do force_load "$m" || exit 1; done exit 0