Cannot save_env on LVM (vg_1-boot)/grub/grubenv

Bug #625234 reported by syscon-hh
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Binary package hint: grub2

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"

I installed my Lucid Lync inside a LVM-System with seperate (vg_1-boot) and configured the

 * /etc/default/grub

  - GRUB_DEFAULT=saved
  - GRUB_SAVEDEFAULT=true

With these configuration (either others) I cannot save the selected menu item to the file

 * (vg_1-boot)/grub/grubenv

Using a normal formated boot-partition it works as expacted.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: grub-common 1.98-1ubuntu7
ProcVersionSignature: Ubuntu 2.6.32-24.41-generic-pae 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic-pae i686
Architecture: i386
Date: Fri Aug 27 12:22:54 2010
ProcEnviron:
 PATH=(custom, no user)
 LANG=de_DE.utf8
 SHELL=/bin/bash
SourcePackage: grub2

Revision history for this message
syscon-hh (syscon-kono) wrote :
summary: - Cannot procidesave_env on LVM (vg_1-boot)/grub/grubenv
+ Cannot save_env on LVM (vg_1-boot)/grub/grubenv
Revision history for this message
Colin Watson (cjwatson) wrote :

Indeed, still true in current trunk:

static grub_err_t
grub_lvm_write (grub_disk_t disk __attribute ((unused)),
                 grub_disk_addr_t sector __attribute ((unused)),
                 grub_size_t size __attribute ((unused)),
                 const char *buf __attribute ((unused)))
{
  return GRUB_ERR_NOT_IMPLEMENTED_YET;
}

This method would need to be implemented (carefully!).

Changed in grub2 (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Valentin Hilbig (valentin-hilbig) wrote :
Revision history for this message
Colin Watson (cjwatson) wrote :

We won't be applying such a patch for the safety reasons given upstream. Some other method of handling save_env in such environments would have to be invented.

Revision history for this message
Rüdiger Kupper (ruediger.kupper) wrote :

This is still not working in quantal.

Revision history for this message
Felipe Castillo (fcastillo.ec) wrote :

This is the main reason why this a new problem has emerged https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1815002

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.