Code für Verity Setup hinzugefügt.
This commit is contained in:
parent
e8b2710514
commit
9668f9d761
1 changed files with 17 additions and 0 deletions
17
install.uefi
17
install.uefi
|
@ -433,6 +433,23 @@ initrd /initramfs-${KERNEL}.img
|
||||||
options quiet splash rw
|
options quiet splash rw
|
||||||
EOF
|
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)
|
||||||
|
|
||||||
|
|
||||||
#--------------------------#
|
#--------------------------#
|
||||||
|
|
||||||
##################
|
##################
|
||||||
|
|
Loading…
Reference in a new issue