les signes de commentaire (#) dans /boot/grub/menu.lst
20 mars 2008 — bapoumbaLe fichier /boot/grub/menu.lst est utilisé pour contrôler le « bootloader » grub. Comme dans tout fichier de configuration, un dièse # au début d’une ligne signifie que c’est un commentaire. L’application l’ignorera. Pas tout à fait. Une section particulière dans le fichier /boot/grub/menu.lst fait exception à cette règle, la « automagic kernel list » (liste engendrée de façon automatique par le script debian update-grub).
### BEGIN AUTOMAGIC KERNELS LIST ## lines between the AUTOMAGIC KERNELS LIST markers will be modified ## by the debian update-grub script except for the default options below ##DO NOT UNCOMMENT THEM, Just edit them to your needs ## ## Start Default Options ## <snip> ## controls how many kernels should be put into the menu.lst ## only counts the first occurence of a kernel, not the ## alternative kernel options ## e.g. howmany=all ## howmany=7 # howmany=all <snip> ## ## End Default Options ##
2 # signifie un commentaire, 1 # une option par défaut (defoption) et pas de #, une entrée pour le kernel. grub est particulier, il a son propre système de noms pour les partitions, et utilise les # à sa manière :)






