Skip to content

Commit

Permalink
Nullboot doesn't seal cmdline yet, thus it must be baked in.
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitri John Ledkov <[email protected]>
  • Loading branch information
xnox committed Jul 14, 2023
1 parent e6b9d60 commit bcf8d09
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions postinst.d/ubuntu-core-initramfs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ ubuntu-core-initramfs create-initrd --kernelver $version

case `dpkg --print-architecture` in
amd64|arm64)
ubuntu-core-initramfs create-efi --unsigned --kernelver $version
;;
case $version in
*-azure)
# Currently nullboot doesn't seal cmdline, thus it must be baked in for azure
ubuntu-core-initramfs create-efi --unsigned --kernelver $version --cmdline "snapd_recovery_mode=cloudimg-rootfs console=tty1 console=ttyS0 earlyprintk=ttyS0"
;;
*)
ubuntu-core-initramfs create-efi --unsigned --kernelver $version
;;
esac
esac

0 comments on commit bcf8d09

Please sign in to comment.