From 9668f9d7616e071a43d7382856860ce2a54dd207 Mon Sep 17 00:00:00 2001 From: eichehome Date: Sun, 23 Jul 2023 20:19:49 +0200 Subject: [PATCH] =?UTF-8?q?Code=20f=C3=BCr=20Verity=20Setup=20hinzugef?= =?UTF-8?q?=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.uefi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/install.uefi b/install.uefi index c9c7db6..f51325d 100644 --- a/install.uefi +++ b/install.uefi @@ -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) + + #--------------------------# ##################