Skip to content

Commit 5f9df77

Browse files
committed
Add Mortar support for Secure Boot DKMS script
1 parent 8ae83c3 commit 5f9df77

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

security/secure_boot_dkms.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ if [ "${EUID}" -ne 0 ]; then
1111
exit 1
1212
fi
1313

14+
echo "Configuring MOK for DKMS kernel modules."
1415
update-secureboot-policy --enroll-key
16+
echo "Updating initramfs."
1517
update-initramfs -u
16-
update-grub
18+
19+
if command -v mortar-compilesigninstall &> /dev/null; then
20+
echo "Mortar detected. Running mortar-compilesigninstall."
21+
mortar-compilesigninstall
22+
else
23+
echo "Updating GRUB configuration."
24+
update-grub
25+
fi

0 commit comments

Comments
 (0)