Skip to content

Commit

Permalink
hook/{luks,lvm}: drop hostonly when copy_kmod (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkwo authored Sep 22, 2024
1 parent b7c2374 commit fd1788a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions hook/luks/luks
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@
mv "${tmpdir}/_" "${tmpdir}/etc/tinyramfs/config"
}

[ "$hostonly" ] &&
for _mod in \
aes ecb xts lrw wp512 sha256 \
sha512 twofish serpent dm-crypt
do
copy_kmod "$_mod"
done
for _mod in \
aes ecb xts lrw wp512 sha256 \
sha512 twofish serpent dm-crypt
do
copy_kmod "$_mod"
done

# https://bugs.archlinux.org/task/56771
[ -e /lib/libgcc_s.so.1 ] && copy_file /lib/libgcc_s.so.1 /lib/libgcc_s.so.1 0755 1
Expand Down
13 changes: 6 additions & 7 deletions hook/lvm/lvm
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
# https://shellcheck.net/wiki/SC2154
# shellcheck disable=2154

[ "$hostonly" ] &&
for _mod in \
dm-log dm-cache dm-mirror \
dm-snapshot dm-multipath dm-thin-pool
do
copy_kmod "$_mod"
done
for _mod in \
dm-log dm-cache dm-mirror \
dm-snapshot dm-multipath dm-thin-pool
do
copy_kmod "$_mod"
done

copy_exec lvm

Expand Down

0 comments on commit fd1788a

Please sign in to comment.