mirror of
https://github.com/xcat2/confluent.git
synced 2024-12-03 18:14:43 +00:00
58ee85f39e
The comment based hook is destroyed during early install process. Use python to manipulate the autoinstall file in a more sophisticated way. Also refactor the initramfs hook material to be standalone files.
23 lines
531 B
Bash
23 lines
531 B
Bash
#!/bin/sh
|
|
case "$1" in
|
|
prereqs)
|
|
echo
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
. /usr/share/initramfs-tools/hook-functions
|
|
mkdir -p $DESTDIR/systemdecrypt
|
|
copy_exec /lib/systemd/systemd-cryptsetup /lib/systemd
|
|
for i in /lib/x86_64-linux-gnu/libtss2*
|
|
do
|
|
copy_exec ${i} /lib/x86_64-linux-gnu
|
|
done
|
|
mkdir -p $DESTDIR/scripts/local-top
|
|
|
|
echo /scripts/local-top/systemdecrypt >> $DESTDIR/scripts/local-top/ORDER
|
|
|
|
if [ -f $DESTDIR/cryptroot/crypttab ]; then
|
|
mv $DESTDIR/cryptroot/crypttab $DESTDIR/systemdecrypt/crypttab
|
|
fi
|