summaryrefslogtreecommitdiff
path: root/initramfs-tools/hooks/samizdat
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-27 20:33:45 -0400
committerAndrew Cady <d@jerkface.net>2016-04-27 20:33:45 -0400
commit2a939f345df828b467a28f90052fd6b4ff004a9e (patch)
tree0a77256ee42e5c52454531781e41c59e79ac13ab /initramfs-tools/hooks/samizdat
parenta29a3c1c2937891ac64754b3aa8a6e60fb9819fe (diff)
add kernel modules to initrd needed for hfsplus
Diffstat (limited to 'initramfs-tools/hooks/samizdat')
-rwxr-xr-xinitramfs-tools/hooks/samizdat33
1 files changed, 25 insertions, 8 deletions
diff --git a/initramfs-tools/hooks/samizdat b/initramfs-tools/hooks/samizdat
index a782a6b..5b1971b 100755
--- a/initramfs-tools/hooks/samizdat
+++ b/initramfs-tools/hooks/samizdat
@@ -12,12 +12,24 @@ path_execs='mountpoint openvt rsync gpg2 gpg-agent pinentry-curses truncate cryp
12 12
13for c in $path_execs; do CopyExec "$(which $c)" /bin; done 13for c in $path_execs; do CopyExec "$(which $c)" /bin; done
14 14
15CopyExec /bin/openvt /bin/OpenVT 15graft_paths="
16CopyExec /sbin/losetup /bin/LoSetup 16 /bin/OpenVT=/bin/openvt
17 17 /bin/LoSetup=/sbin/losetup
18CopyExec patchroot.sh /patchroot/patchroot.sh 18 /patchroot/patchroot.sh=patchroot.sh
19CopyExec /etc/apt/sources.list /patchroot/sources.list 19 /patchroot/sources.list=/etc/apt/sources.list
20CopyExec initrd-dependencies.txt /patchroot/initrd-dependencies.txt 20 /patchroot/initrd-dependencies.txt=initrd-dependencies.txt
21"
22
23for e in $graft_paths; do
24 case "$e" in
25 *=*)
26 dest=${e%%=*}
27 src=${e#*=}
28 CopyExec "$src" "$dest"
29 ;;
30 *) exit 1 ;;
31 esac
32done
21 33
22absolute_path_copies='/lib/terminfo/l/linux' 34absolute_path_copies='/lib/terminfo/l/linux'
23 35
@@ -30,9 +42,14 @@ for c in $samizdat_execs; do CopyExec ${samizdat_execs_dir}/$c /bin; done
30 42
31CopyExec vol_id.txt /lib/samizdat/vol_id.txt 43CopyExec vol_id.txt /lib/samizdat/vol_id.txt
32 44
33modules='loop xts dm-crypt' 45modules='loop xts dm-crypt hfs hfsplus'
34for m in $modules; do force_load "$m" || exit 1; done 46for m in $modules; do force_load "$m" || exit 1; done
35 47
36copy_modules_dir "/lib/modules/${version}/kernel/drivers/net/ethernet" || exit 1 48sex() { (set -x; "$@"); }
49
50modules_dirs='kernel/drivers/net/ethernet kernel/fs/nls'
51for dir in $modules_dirs; do
52 copy_modules_dir "$dir" || exit 1
53done
37 54
38exit 0 55exit 0