Contents

Add Power Off and Reboot to Grub Menu

A Random Necessity!

Updated on 24-Oct-2021

This post shows how to add Power Off and Reboot to grub menu.

To add Power Off and Reboot options to grub menu, you need to update a file in your grub configuration directory.

cd /etc/grub.d

For me its micro :

micro 40_custom

Do not change the exec tail line in the file


 menuentry "Reboot" {
	  reboot
}

menuentry "Power Off" {
	  halt
}

  • For Debian based distros
update-grub
  • For Arch based and Other distros
grub-mkconfig -o /boot/grub/grub.cfg

Комментарии