Post History
On Ubuntu and Debian (and their derivates) you can use the file /etc/grub.d/40_custom which is intended exactly for this: Content of /etc/grub.d/40_custom: #!/bin/sh exec tail -n +3 $0 # This f...
Answer
#3: Post edited
On Ubuntu and Debian you can use the file `/etc/grub.d/40_custom` which is intended exactly for this:- Content of _/etc/grub.d/40_custom_:
- ```bash
- #!/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.
- ```
- Just add your menu entries there and they will be added when the grub config is recreated.
- On Ubuntu and Debian (and their derivates) you can use the file `/etc/grub.d/40_custom` which is intended exactly for this:
- Content of _/etc/grub.d/40_custom_:
- ```bash
- #!/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.
- ```
- Just add your menu entries there and they will be added when the grub config is recreated.
#2: Post edited
On Ubuntu there is the file `/etc/grub.d/40_custom` which is intended exactly for this:- Content of _/etc/grub.d/40_custom_:
- ```bash
- #!/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.
- ```
- Just add your menu entries there and they will be added when the grub config is recreated.
- On Ubuntu and Debian you can use the file `/etc/grub.d/40_custom` which is intended exactly for this:
- Content of _/etc/grub.d/40_custom_:
- ```bash
- #!/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.
- ```
- Just add your menu entries there and they will be added when the grub config is recreated.
#1: Initial revision
On Ubuntu there is the file `/etc/grub.d/40_custom` which is intended exactly for this: Content of _/etc/grub.d/40_custom_: ```bash #!/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. ``` Just add your menu entries there and they will be added when the grub config is recreated.