diff --git a/postinst.d/ubuntu-core-initramfs b/postinst.d/ubuntu-core-initramfs index ce54e9cc..411fd34a 100755 --- a/postinst.d/ubuntu-core-initramfs +++ b/postinst.d/ubuntu-core-initramfs @@ -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