Grub

How to Grub

  • Change interface name to eth0
    dmesg | grep -i eth
    r8152 4-1.2:1.0 enxa44cc8ab5e90: renamed from eth0
    vi /etc/default/grub
    GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
    sudo grub-mkconfig -o /boot/grub/grub.cfg

Secure grub boot loader

  • Create key
    sudo grub-mkpasswd-pbkdf2
  • Set file
    sudo vi /etc/grub.d/40_custom
    set superusers="root"
    
    password_pbkdf2 root KEY
  • In order to make Linux entries --unrestricted, the CLASS variable in the beginning of /etc/grub.d/10_linux can be modified.
    sudo vi /etc/grub.d/10_linux
    CLASS="--class gnu-linux --class gnu --class os --unrestricted"
  • Update grub
    sudo grub-mkconfig -o /boot/grub/grub.cfg