calamares/src/modules/initramfscfg/encrypt_hook

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
490 B
Plaintext
Raw Normal View History

#!/bin/sh
2020-08-22 01:19:58 +02:00
#
# SPDX-FileCopyrightText: 2016 David McKinney <mckinney@subgraph.com>
# SPDX-License-Identifier: GPL-3.0-or-later
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
if [ -f /crypto_keyfile.bin ]
then
cp /crypto_keyfile.bin ${DESTDIR}
fi
if [ -f /etc/crypttab ]
then
cp /etc/crypttab ${DESTDIR}/etc/
fi