trustfence-initramfs-init: remove cryptsetup from init script
New functionality has been implemented in trustfence-tool application, so there is no need to call cryptsetup command. Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
4ca3aa176a
commit
a8c50c16ea
|
|
@ -48,13 +48,10 @@ fi
|
|||
root="$(findfs ${root})"
|
||||
|
||||
# Open LUKS encrypted device
|
||||
TMP_KEYFILE="$(mktemp keyfile.XXXXXX)"
|
||||
trustfence-tool -f ${TMP_KEYFILE}
|
||||
if cryptsetup --key-file ${TMP_KEYFILE} open --type luks ${root} cryptroot; then
|
||||
if trustfence-tool ${root} cryptroot; then
|
||||
# Reset root variable to the decrypted mapped device
|
||||
root="/dev/mapper/cryptroot"
|
||||
fi
|
||||
wipe -cfs ${TMP_KEYFILE}
|
||||
|
||||
# Mount mapped device
|
||||
mkdir -p /newroot
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ LICENSE = "CLOSED"
|
|||
|
||||
SRC_URI = "${DIGI_PKG_SRC}/${BP}.tar.gz"
|
||||
|
||||
SRC_URI[md5sum] = "aa9b8b530402f412886e1f8f1da466e6"
|
||||
SRC_URI[sha256sum] = "dbeb718158a4a55552bb3a2c03990df3167331bb772925f824ebc02348e29089"
|
||||
SRC_URI[md5sum] = "1140b71d0e619001b677117e8938be48"
|
||||
SRC_URI[sha256sum] = "13eecca139dfb6470204c75291c5791144dea098653f52d39d847b2aee3fe19b"
|
||||
|
||||
inherit bin_package
|
||||
|
|
|
|||
Loading…
Reference in New Issue