Skip to content

Commit 0166533

Browse files
committed
Merge remote-tracking branch 'tlaurion-github/generate_passphrase-reownership_qr_code' into introduce_quiet_mode-diceware_STAGING
Signed-off-by: Thierry Laurion <insurgo@riseup.net>
2 parents ae97467 + 4b4ac60 commit 0166533

7 files changed

Lines changed: 2849 additions & 1135 deletions

File tree

initrd/bin/kexec-sign-config

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ assert_signable
2727

2828
confirm_gpg_card
2929

30+
# remount /boot as rw
31+
mount -o remount,rw /boot
32+
3033
# update hashes in /boot before signing
3134
if [ "$update" = "y" ]; then
3235
(
@@ -81,8 +84,15 @@ for tries in 1 2 3; do
8184
; then
8285
# successful - update the validated params
8386
check_config $paramsdir
87+
88+
# remount /boot as ro
89+
mount -o remount,ro /boot
90+
8491
exit 0
8592
fi
8693
done
8794

95+
# remount /boot as ro
96+
mount -o remount,ro /boot
97+
8898
die "$paramsdir: Unable to sign kexec hashes"

0 commit comments

Comments
 (0)