update-grub fails when default is "saved" (expr: non-numeric argument)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Binary package hint: grub
summary says it all.
lala@hardy:~$ LANG=C sudo update-grub
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
expr: non-numeric argument
lala@hardy:~$
same with sh -x:
+ [ /boot/vmlinuz-
+ [ -1 -gt 0 ]
+ newerKernels= /boot/vmlinuz-
+ [ /boot/vmlinuz-
+ newerKernels= /boot/vmlinuz-
+ sortedKernels= /boot/vmlinuz-
+ test -f /boot/vmlinuz.old
+ test -f /boot/vmlinuz
+ use_grub_
+ test true = true
+ sed -ne s/^[[:blank:
+ defaultEntryNum
+ [ saved = saved ]
+ sed q /boot/grub/default
+ defaultEntryNum
+ use_grub_
+ test -n default
+ expr default + 1
expr: non-numeric argument
+ defaultEntryNum
jr@hardy:~$
Changed in grub: | |
status: | Confirmed → Triaged |
summary: |
- update-grub fails when default is "saved" + update-grub fails when default is "saved" (expr: non-numeric argument) |
Hi Johannes,
Can you please send the contents of /boot/grub/default on your system?
It appears from this output that the first line of this file is 'default'. It makes no sense to declare a default of "default"; perhaps seeing the full contents of the file, we can figure out how it got that way.
Hmm, apparently 'grub-set-default default' is a supported command - but I wonder what it's supposed to mean? Did you run this command at some point?