GRUB example conflicts with hardy grub

Bug #187659 reported by Christian Meier
4
Affects Status Importance Assigned to Milestone
fai (Ubuntu)
Fix Released
Undecided
Reinhard Tartler

Bug Description

Binary package hint: fai-doc

I am using hardy-jeos-i396 daily build (25 of Jan) and fai

Fai examples include a menu.lst file (config/files/boot/grub/menu.lst/GRUB) that is copied by scripts/GRUB/10-setup.
The newest GRUB version has introduced ucf to maintain the menu.lst.

If fai copies the file, and update-grub later uses ucf, the kernel list doesn't get updated, because it is interpreted as a user configured file.

A solution might be to let update-grub do all the job.
So we delete the menu.lst/GRUB and mv the menu.list/postinst to config/scripts/GRUB/10-setup and change the following details:

remove perl command
and change
$ROOTCMD /usr/sbin/update-grub
to
echo y | $ROOTCMD /us/sbin/update-grub

Maybe there exists another solution: First register the menu.lst to ucf, and then
run update-grup with exported USE_FORCE_CONFFNEW, but I haven't tried that yet.

Related branches

Revision history for this message
Reinhard Tartler (siretart) wrote :

how about using 'update-grub -y', as described in update-grub(8)? ;)

Revision history for this message
Reinhard Tartler (siretart) wrote :

after discussing this with Christian and Achim, we will upload with 'update-grub -y' to hardy.

This is of course breaks fcopy'ed menu.lsts, but you have to make the decision here: Either you want the file to be managed with fai or with update-grub. The mixed managed that was in place up to now doesn't work anymore with the new ucf-managed grub.

Changed in fai:
status: New → Triaged
status: Triaged → In Progress
assignee: nobody → siretart
Revision history for this message
free-x (free-x) wrote :

I have tried follow GRUB/10-setup
#! /bin/bash

error=0 ; trap "error=$((error|1))" ERR

$ROOTCMD update-grub -y

exit $error

It doesn't works for me :-(

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package fai - 3.2.4+svn4837-0ubuntu2

---------------
fai (3.2.4+svn4837-0ubuntu2) hardy; urgency=low

  * upload to hardy

fai (3.2.4+svn4837-0ubuntu2~ppa3) hardy; urgency=low

  * simple config GRUB/10-setup: add to kernel-img.conf postinst and postrm
    hook settings that run update-grub. Without them, grub's menu.lst is not
    updated on linux image installation/removal.

fai (3.2.4+svn4837-0ubuntu2~ppa2) hardy; urgency=low

  * don't install menu.lst and GRUB postinst script at all in the binary
    package by removing them in the clean rule of debian/rules
  * remove console-data support, show how to preseed console-setup in the
    example class GERMAN. (LP: #207756)

fai (3.2.4+svn4837-0ubuntu2~ppa1) hardy; urgency=low

  [ Christian Meier ]
  * bin/fai, lib/get-config-dir-nfs: always use -n option in romountopt to
    prevent accessing /etc/mtab in read-only environment
    (closes: LP: #207582)
  * fix grub example (closes LP: #187659)
    * remove menu.lst of examples
    * move the postinst script of menu.lst to
      examples/simple/scripts/GRUB/10-setup and modify it to let update-grub
      do the configuration of menu.lst
  * workaround for not correctly working unionfs over nfs
    * create nfshooks (/etc/fai/10-unionfs-workaround) that delete certain
      files in nfsroot that will be created automatically through fai scripts.
      (LP: #197006)
  * add ghostscript to build dependencies
  * don't fail build if there are no postinst scripts in the 'simple-example'
    configuration space

  [ Reinhard Tartler ]
  * add genisofs alternative to mkisofs in fai-server and fai-quickstart
    packages (LP: #156836)

 -- Reinhard Tartler <email address hidden> Tue, 01 Apr 2008 12:41:34 +0200

Changed in fai:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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