diff options
author | Andrew Cady <d@jerkface.net> | 2016-04-27 20:33:45 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-04-27 20:33:45 -0400 |
commit | 2a939f345df828b467a28f90052fd6b4ff004a9e (patch) | |
tree | 0a77256ee42e5c52454531781e41c59e79ac13ab /initramfs-tools/hooks/samizdat | |
parent | a29a3c1c2937891ac64754b3aa8a6e60fb9819fe (diff) |
add kernel modules to initrd needed for hfsplus
Diffstat (limited to 'initramfs-tools/hooks/samizdat')
-rwxr-xr-x | initramfs-tools/hooks/samizdat | 33 |
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 | ||
13 | for c in $path_execs; do CopyExec "$(which $c)" /bin; done | 13 | for c in $path_execs; do CopyExec "$(which $c)" /bin; done |
14 | 14 | ||
15 | CopyExec /bin/openvt /bin/OpenVT | 15 | graft_paths=" |
16 | CopyExec /sbin/losetup /bin/LoSetup | 16 | /bin/OpenVT=/bin/openvt |
17 | 17 | /bin/LoSetup=/sbin/losetup | |
18 | CopyExec patchroot.sh /patchroot/patchroot.sh | 18 | /patchroot/patchroot.sh=patchroot.sh |
19 | CopyExec /etc/apt/sources.list /patchroot/sources.list | 19 | /patchroot/sources.list=/etc/apt/sources.list |
20 | CopyExec initrd-dependencies.txt /patchroot/initrd-dependencies.txt | 20 | /patchroot/initrd-dependencies.txt=initrd-dependencies.txt |
21 | " | ||
22 | |||
23 | for 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 | ||
32 | done | ||
21 | 33 | ||
22 | absolute_path_copies='/lib/terminfo/l/linux' | 34 | absolute_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 | ||
31 | CopyExec vol_id.txt /lib/samizdat/vol_id.txt | 43 | CopyExec vol_id.txt /lib/samizdat/vol_id.txt |
32 | 44 | ||
33 | modules='loop xts dm-crypt' | 45 | modules='loop xts dm-crypt hfs hfsplus' |
34 | for m in $modules; do force_load "$m" || exit 1; done | 46 | for m in $modules; do force_load "$m" || exit 1; done |
35 | 47 | ||
36 | copy_modules_dir "/lib/modules/${version}/kernel/drivers/net/ethernet" || exit 1 | 48 | sex() { (set -x; "$@"); } |
49 | |||
50 | modules_dirs='kernel/drivers/net/ethernet kernel/fs/nls' | ||
51 | for dir in $modules_dirs; do | ||
52 | copy_modules_dir "$dir" || exit 1 | ||
53 | done | ||
37 | 54 | ||
38 | exit 0 | 55 | exit 0 |