Skip to content

Commit

Permalink
grub: Disable boot measurement for installer
Browse files Browse the repository at this point in the history
This commit disables the boot measurement for the installer in order to speed up
the boot process.

Signed-off-by: Renê de Souza Pinto <rene@renesp.com.br>
(cherry picked from commit 326b7e9)
  • Loading branch information
rene committed Jan 31, 2025
1 parent a3e8771 commit 16a46c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/grub/rootfs.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ function set_rootfs_root {
if [ -z "$rootfs_root" ]; then
probe -s root_type --fs $root # do NOT try to probe netfs for part-uuid; grub crashes
if [ "$root_type" != "netfs" ]; then
measurefs $root --pcr 13
if [ "$rootfs_title_suffix" != "-installer" ]; then
measurefs $root --pcr 13
fi
probe --set partuuid --part-uuid $root
set_global rootfs_root "PARTUUID=$partuuid"
fi
Expand Down

0 comments on commit 16a46c0

Please sign in to comment.