diff -Nru nullboot-0.4.0/debian/changelog nullboot-0.4.0/debian/changelog --- nullboot-0.4.0/debian/changelog 2022-05-18 16:09:13.000000000 +0200 +++ nullboot-0.4.0/debian/changelog 2022-10-18 09:12:00.000000000 +0200 @@ -1,3 +1,10 @@ +nullboot (0.4.0-0ubuntu1~ppa1) kinetic; urgency=medium + + * To allow installation on systems with no TPM, run nullbootctl with + --no-tpm --no-efivars during postinstall if no TPM is found. + + -- Gauthier Jolly Tue, 18 Oct 2022 09:12:00 +0200 + nullboot (0.4.0-0ubuntu1) kinetic; urgency=medium * Feature: diff -Nru nullboot-0.4.0/debian/nullboot.postinst nullboot-0.4.0/debian/nullboot.postinst --- nullboot-0.4.0/debian/nullboot.postinst 2022-05-18 16:09:13.000000000 +0200 +++ nullboot-0.4.0/debian/nullboot.postinst 2022-10-18 09:01:39.000000000 +0200 @@ -1,8 +1,14 @@ #!/bin/sh set -e if [ "$1" = "triggered" ] || [ "$1" = "configure" ]; then - if [ -e "/boot/efi/EFI/ubuntu/" ]; then + # check if ESP is mounted and a TPM is available on the system + if [ -e "/boot/efi/EFI/ubuntu/" ] && [ -e "/dev/tpm0" ]; then + # if so, run nullbootctl to insert EFI variables and re-seal + # the secret nullbootctl + else + # Otherwise, still run nullboot but only configure BOOTX64.CSV + nullbootctl --no-tpm --no-efivars fi fi