NotNet Profiler - Using grub bootloader
Debian (and may be other distribution as well) provides a shell script called update-grub that can be executed when a new kernel has been installed. If the configuration file /boot/grub/menu.lst does no exist, it will be created and the new kernel will be added.
update-grub can be configured to automatically add multiple entries for one kernel. That might be useful for you in combination with notnet, as you most certainly have several different schemes, you might want to automatically add an entry for each scheme.
The file /boot/grub/menu.lst contains (when created with update-grub) a section beginning with:
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default optons below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
and ending with:
## ## End Default Options ##
Between these lines you can modify some values that allow you to configure update-grub to add multiple alternatives for one kernel.
First of all, the make sure that the following lines are present and that the last line looks exactly like to one here:
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
It is important NOT to remove the training # !!!
A bit further down you can add your own alternatives:
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) single
# altoptions=(Home) notnet=home
# altoptions=(Work) notnet=work
Add an "altoptions" line for each of your schemes. You do not need to add the "local" scheme, it will be automatically loaded when you choose the main kernel entry (and not one of the alternatives). Do not specify the notnet=... parameter on the "kopt" line because these options will be used for every kernel (including the alternatives).
