Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
feat: Install secure boot/akmod key on all images (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo authored Jan 11, 2024
1 parent 066c98f commit 40925bb
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion installer/kickstart/enroll-secureboot-key.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ if [[ ! -f "${SECUREBOOT_KEY}" ]]; then
exit 1
fi

echo -e "${ENROLLMENT_PASSWORD}\n${ENROLLMENT_PASSWORD}" | mokutil --import "${SECUREBOOT_KEY}" ||:
echo -e "${ENROLLMENT_PASSWORD}\n${ENROLLMENT_PASSWORD}" | mokutil --import "${SECUREBOOT_KEY}" --timeout -1 ||:
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ set -oue pipefail

source /run/install/repo/kickstart/ublue-os-env-vars

/run/install/repo/kickstart/enroll-secureboot-key.sh "${SECUREBOOT_KEY_OLD}" "${ENROLLMENT_PASSWORD}"
/run/install/repo/kickstart/enroll-secureboot-key.sh "${SECUREBOOT_KEY}" "${ENROLLMENT_PASSWORD}"
3 changes: 2 additions & 1 deletion installer/kickstart/ublue-os-deck.ks
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

%include /tmp/ks-urls.txt

bootloader --append="amd_pstate=active amd_iommu=off amdgpu.gttsize=8128 spi_amd.speed_dev=1 initcall_blacklist=simpledrm_platform_driver_init rd.luks.options=discard"
bootloader --append="amd_iommu=off amdgpu.gttsize=8128 spi_amd.speed_dev=1 rd.luks.options=discard"

%post --logfile=/root/ks-post.log --erroronfail --nochroot
%ksappend /run/install/repo/kickstart/post-install.sh
%end
1 change: 0 additions & 1 deletion installer/kickstart/ublue-os-env-vars
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
SECUREBOOT_KEY_OLD="/run/install/repo/ublue-os-nvidia-public-key.der"
SECUREBOOT_KEY="/run/install/repo/ublue-os-akmods-public-key.der"
# Not a secure password, but needed for scripted key enrollment
ENROLLMENT_PASSWORD="ublue-os"
2 changes: 1 addition & 1 deletion installer/kickstart/ublue-os-nvidia.ks
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
bootloader --append="rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 rd.luks.options=discard"

%post --logfile=/root/ks-post.log --erroronfail --nochroot
%ksappend /run/install/repo/kickstart/post-install-nvidia.sh
%ksappend /run/install/repo/kickstart/post-install.sh
%end
3 changes: 2 additions & 1 deletion installer/kickstart/ublue-os.ks
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@

bootloader --append="rd.luks.options=discard"

%post --logfile=/root/ks-post.log --erroronfail
%post --logfile=/root/ks-post.log --erroronfail --nochroot
%ksappend /run/install/repo/kickstart/post-install.sh
%end
Binary file not shown.

0 comments on commit 40925bb

Please sign in to comment.