Protect the grub boot menu.

This commit is contained in:
Andreas B. Mundt 2023-07-23 11:35:06 +02:00
parent 1f6d262ad4
commit adc9aa8489
2 changed files with 11 additions and 1 deletions

View file

@ -155,7 +155,15 @@
command: sync-vm.sh -t
## FIXME: do not run every time
################# from kiosk.yml ##################
################# general settings ##################
- name: Protect grub menu entries
blockinfile:
path: /etc/grub.d/40_custom
block: |
set superusers='root'
password_pbkdf2 root {{ grub_pwd }}
notify: update grub
- name: grub timeout
lineinfile:
dest: /etc/default/grub