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
Open 40_custom
in your favorite editor
For me its micro
:
micro 40_custom
Add following line at the end of the file
menuentry "Reboot" {
reboot
}
menuentry "Power Off" {
halt
}
Do not change the
exec tail
line in the file
Update your grub.cfg
file
- For Debian based distros
update-grub
- For Arch based and Other distros
grub-mkconfig -o /boot/grub/grub.cfg
Top comments (0)