Code für Verity Setup hinzugefügt.

This commit is contained in:
eichehome 2023-07-23 20:19:49 +02:00
parent e8b2710514
commit 9668f9d761

View file

@ -433,6 +433,23 @@ initrd /initramfs-${KERNEL}.img
options quiet splash rw
EOF
#--------------------------#
###############
# Veritysetup #
###############
echo "veritysetup"
OUTPUT_VERITYSETUP=$(veritysetup format /dev/vda2 /dev/vda3)
ROOT_HASH=$(echo "${OUTPUT_VERITYSETUP}" | grep "Root hash" | sed 's/[[:blank:]]\+/ /g' | cut -d ' ' -f 3)
ROOTHASH_TEIL="${ROOT_HASH:0:32}"
lsblk
#sgdisk -u (partnum /USR):(64 char roothash)(UUID_USRHASH)
#--------------------------#
##################