Wir erstellen ein Passwort
Danach wird dies an die Datei /etc/grub.d/40_custom gehängt
- Der Schlüssel wurde hier zur besseren Darstellung gekürzt.
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
set superusers=leroy
password_pbkdf2 leroy grub.pbkdf2.sha512.10000.CB7420E44ED9D672920C79794FD81352B0623BB7
Abschluss
- update-grub baut anhand der Skripte unter /etc/grub.d eine neue /etc/grub/grub.conf
- Der jetztige Zustand erlaubt nur ein Booten wenn man das Passwort eingibt
Automatisches Booten aber kein Ändern der Booting Einträge
- Wenn man automatisch Booten, aber keine Änderung der Booting Einträge
- sed -i.bak "s/--class os/& --unrestricted/" /etc/grub.d/10_linux
- rm /etc/grub.d/10_linux.bak
- Abschliessend wieder eine