mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-23 10:02:04 +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.
18 lines
403 B
Bash
18 lines
403 B
Bash
#!/bin/sh
|
|
case $1 in
|
|
prereqs)
|
|
echo
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
systemdecryptnow() {
|
|
. /usr/lib/cryptsetup/functions
|
|
local CRYPTTAB_SOURCE=$(awk '{print $2}' /systemdecrypt/crypttab)
|
|
local CRYPTTAB_NAME=$(awk '{print $1}' /systemdecrypt/crypttab)
|
|
crypttab_resolve_source
|
|
/lib/systemd/systemd-cryptsetup attach "${CRYPTTAB_NAME}" "${CRYPTTAB_SOURCE}" none tpm2-device=auto
|
|
}
|
|
|
|
systemdecryptnow
|