kexec-tools should not exit when there is no /boot/grub

Bug #401405 reported by Steven Shiau
16
This bug affects 5 people
Affects Status Importance Assigned to Milestone
kexec-tools (Ubuntu)
Fix Released
High
Colin Watson

Bug Description

Binary package hint: kexec-tools

When grub is installed but /boot/grub is not configured (e.g. for live CD), kexec-tools (20090000-2.0.0ubuntu11) should not exit when running postinst when installing the kexec-tools deb package. This is the problem I found when using cdebootstrap to create an Ubuntu live system.
How to reproduce it:
1. Install cdebootstrap
2. edit /usr/share/cdebootstrap/suites, append
Suite: karmic
Config: generic-ubuntu
Keyring: ubuntu-archive-keyring.gpg
3. Run:
cdebootstrap --debug --allow-unauthenticated --include=sysv-rc,upstart,system-services,grub,kexec-tools -f minimal karmic ./karmic http://free.nchc.org.tw/ubuntu

It will exit in:
O: Setting up kexec-tools (20090000-2.0.0ubuntu11) ...
P: Configuring package kexec-tools
D: Updating kexec-tools to status 3
O: Generating /etc/default/kexec...
O: Searching for GRUB installation directory ...
O:
O: No GRUB directory found. To create a template run 'mkdir /boot/grub' first. To install grub, install it manually or try the 'grub-install' command. ### Warning, grub-install is used to change your MBR. ###
O:
O: dpkg: error processing kexec-tools (--configure):
O: subprocess installed post-installation script returned error exit status 1

Verbose results were attached.

Revision history for this message
Steven Shiau (stevenshiau) wrote :
Revision history for this message
Steven Shiau (stevenshiau) wrote :

This problem still exists in 20090000-2.0.0ubuntu12.

Revision history for this message
Steven Shiau (stevenshiau) wrote :

This problem still exists in kexec-tools 2.0.1-1ubuntu2.

Changed in kexec-tools (Ubuntu):
status: New → Confirmed
Colin Watson (cjwatson)
Changed in kexec-tools (Ubuntu):
assignee: nobody → Colin Watson (cjwatson)
status: Confirmed → Triaged
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kexec-tools - 1:2.0.2-1ubuntu3

---------------
kexec-tools (1:2.0.2-1ubuntu3) oneiric; urgency=low

  * Only run update-grub if /boot/grub/grub.cfg exists, fixing installation
    in chroots (LP: #401405).
 -- Colin Watson <email address hidden> Tue, 30 Aug 2011 13:30:21 +0100

Changed in kexec-tools (Ubuntu):
status: Triaged → Fix Released
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.