瀏覽代碼

Merge pull request #288 from ArcticXWolf/signing_add_initrd_copy_for_signed_kernel

Add instructions to copy the initram for signed kernel
Jake Day 6 年之前
父節點
當前提交
d27b67bd4d
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. 8 2
      SIGNING.md

+ 8 - 2
SIGNING.md

@@ -87,14 +87,20 @@ sudo mokutil --list-enrolled
 sudo sbsign --key MOK.priv --cert MOK.pem /boot/vmlinuz-[KERNEL-VERSION]-surface-linux-surface --output /boot/vmlinuz-[KERNEL-VERSION]-surface-linux-surface.signed
 ```
 
-8. Update your grub-config
+8. Copy the initram of the unsigned kernel, so we also have an initram for the signed one.
+```
+sudo cp /boot/initrd.img-[KERNEL-VERSION]-surface-linux-surface{,.signed}
+```
+
+9. Update your grub-config
 ```
 sudo update-grub
 ```
 
-9. Reboot your system and select signed kernel. If booting works, you can remove the unsigned kernel:
+10. Reboot your system and select the signed kernel. If booting works, you can remove the unsigned kernel:
 ```
 sudo mv /boot/vmlinuz-[KERNEL-VERSION]-surface-linux-surface{.signed,}
+sudo mv /boot/initrd.img-[KERNEL-VERSION]-surface-linux-surface{.signed,}
 sudo update-grub
 ```