mirror of
https://github.com/linuxboot/heads.git
synced 2025-02-09 04:11:07 +00:00
kexec-sign-config: mount rw, write things to /boot, mount ro after
Signed-off-by: Thierry Laurion <insurgo@riseup.net>
This commit is contained in:
parent
e25fb595b6
commit
95473d6c89
@ -27,6 +27,9 @@ assert_signable
|
||||
|
||||
confirm_gpg_card
|
||||
|
||||
# remount /boot as rw
|
||||
mount -o remount,rw /boot
|
||||
|
||||
# update hashes in /boot before signing
|
||||
if [ "$update" = "y" ]; then
|
||||
(
|
||||
@ -81,8 +84,15 @@ for tries in 1 2 3; do
|
||||
; then
|
||||
# successful - update the validated params
|
||||
check_config $paramsdir
|
||||
|
||||
# remount /boot as ro
|
||||
mount -o remount,ro /boot
|
||||
|
||||
exit 0
|
||||
fi
|
||||
done
|
||||
|
||||
# remount /boot as ro
|
||||
mount -o remount,ro /boot
|
||||
|
||||
die "$paramsdir: Unable to sign kexec hashes"
|
||||
|
Loading…
x
Reference in New Issue
Block a user