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

feat: Install secure boot/akmod key on all images #88

Merged
merged 3 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.