update-grub fails if no *-kdump files

Bug #53727 reported by Tormod Volden
30
Affects Status Importance Assigned to Milestone
grub (Ubuntu)
Fix Released
High
Ben Collins

Bug Description

edgy knot-1 (grub 0.97-11ubuntu6):
update-grub fails and stops with "ls: /boot/*-kdump: No such file or directory" and /boot/grub/menu.lst is therefore not updated.

Since the update-grub script has "-e" set, the failing ls makes the script abort.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

This patch just adds "|| true" after the "ls", so that the script can go on in case of missing kdump files, and successfully update menu.lst.

Matt Zimmerman (mdz)
Changed in grub:
assignee: nobody → ben-collins
importance: Untriaged → High
status: Unconfirmed → Confirmed
Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

Seems to be fixed with the latest grub.

Version: 0.97-11ubuntu7

Changed in grub:
status: Confirmed → Fix Released
Revision history for this message
Carl Karsten (carlfk) wrote :

Jul 25 12:20:18 apt-install: Setting up grub (0.97-11ubuntu7) ...
Jul 25 12:20:18 apt-install: Searching for GRUB installation directory ...
Jul 25 12:20:18 apt-install:
Jul 25 12:20:18 apt-install: -e No GRUB directory found.
Jul 25 12:20:18 apt-install: To create a template run 'mkdir /boot/grub' first.
Jul 25 12:20:18 apt-install: To install grub, install it manually or try the 'grub-install' command.
Jul 25 12:20:18 apt-install: ### Warning, grub-install is used to change your MBR. ###
Jul 25 12:20:18 apt-install:
Jul 25 12:20:18 apt-install: dpkg: error processing grub (--configure):
Jul 25 12:20:18 apt-install: subprocess post-installation script returned error exit status 1
Jul 25 12:20:18 apt-install: Errors were encountered while processing:
Jul 25 12:20:18 apt-install: grub
Jul 25 12:20:19 apt-install: E:
Jul 25 12:20:19 apt-install: Sub-process /usr/bin/dpkg returned an error code (1)
Jul 25 12:20:19 apt-install:
Jul 25 12:20:19 grub-installer: info: Calling 'apt-install grub' failed
Jul 25 12:20:19 debconf: --> INPUT critical grub-installer/apt-install-failed
Jul 25 12:20:19 debconf: <-- 0 question will be asked
Jul 25 12:20:19 debconf: --> GO

Revision history for this message
Carl Karsten (carlfk) wrote :

crud - this should have been a new report. I'll open a new one.
sorry.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.