I have a Debian Lenny file server here with multiple disks. By default, /boot/grub/menu.lst is configured with a line like
Code:
kernel /boot/vmlinuz-2.6.26-1-686 root=/dev/sda1 ro
Sometimes, the mapped name of that disk will change (ie: /dev/sda1 and /dev/sdb1 will switch), so I configured /boot/grub/menu.lst with a UUID instead:
Code:
kernel /boot/vmlinuz-2.6.26-1-686 root=UUID=e2d91dc4-e72c-4529-92e8-3f090472e044 ro
The problem is that when I update the kernel via `apt-get upgrade` or such, it writes a new /boot/grub/menu.lst using the mapped name instead of the UUID.
What is the fix for this? Do I manually rewrite /boot/grub/menu.lst with the UUID every time I update the kernel?