grub on btrfs with compress=lzo fails to boot

Bug #727535 reported by David Nielsen
80
This bug affects 14 people
Affects Status Importance Assigned to Milestone
grub
Unknown
Unknown
grub2 (Ubuntu)
Fix Released
Medium
Colin Watson

Bug Description

Binary package hint: grub2

add compress=lzo to the fstab mount argument for / or which ever btrfs partition grub is installed on. When rebooting grub will, harmlessly fail saying compression 0x02 is unsupported and plymouth will fail.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: grub2 (not installed)
ProcVersionSignature: Ubuntu 2.6.38-5.32-generic 2.6.38-rc6
Uname: Linux 2.6.38-5-generic x86_64
Architecture: amd64
Date: Wed Mar 2 02:27:11 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110226)
ProcEnviron:
 LANGUAGE=da_DK:en
 LANG=da_DK.UTF-8
 SHELL=/bin/bash
SourcePackage: grub2
UpgradeStatus: No upgrade log present (probably fresh install)

Colin Watson (cjwatson)
Changed in grub2 (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
John Doe (jodo-deactivatedaccount) wrote :

I can confirm this on a 32bit Machine. But it isn't harmless, because the System will not boot. I only have the grub rescue shell after the error message.

summary: - grub on btrfs compress=lzo leads to failure
+ grub on btrfs with compress=lzo fails to boot
Revision history for this message
wilbur.harvey (wilbur-harvey) wrote :

I have a similar problem.
At the grub2 prompt, I can boot the system using the following commands
set root=(hd0,msdos1)
linux /@/boot/vmlinuz-2.6.38-8-generic root=/dev/sda1 ro rootflags=subvol=@
initrd /@/boot/initrd.img-2.6.38-8-generic
boot

But I get a message saying that it cannot read the Linux header if I try the -9 or -10 kernel.

Revision history for this message
Philip Muškovac (yofel) wrote :

There's an experimental implementation on the upstream bug, anyone taken a look at it yet?

Revision history for this message
Philip Muškovac (yofel) wrote :

With this being in trunk now for a while, any chance of getting this into precise?

Revision history for this message
Kyle Gates (kylegates) wrote :

As an alternative, if you add the z (Not_Compressed) xattr to /boot its contents won't get compressed and grub will continue to work.

Revision history for this message
shawnlandden (shawnlandden) wrote :

please either update grub package, or change the installer set the Not_Compressed xattr to /boot as mentioned by @kylegates

the later is more likely to happen to precise at this late date

Colin Watson (cjwatson)
Changed in grub2 (Ubuntu):
status: Triaged → Fix Committed
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package grub2 - 1.99-18ubuntu1

---------------
grub2 (1.99-18ubuntu1) precise; urgency=low

  * Resynchronise with Debian. Remaining changes:
    - Adjust for default Ubuntu boot options ("quiet splash").
    - Default to hiding the menu; holding down Shift at boot will show it.
    - Set a monochromatic theme and an appropriate background for Ubuntu.
    - Apply Ubuntu GRUB Legacy changes to legacy update-grub script.
    - Fix backslash-escaping in merge_debconf_into_conf.
    - Remove "GNU/Linux" from default distributor string.
    - Add crashkernel option.
    - Bypass menu unless other OSes are installed or Shift is pressed.
    - Allow Shift to interrupt 'sleep --interruptible'.
    - Reduce visual clutter in normal mode.
    - Remove verbose messages printed before reading configuration.
    - Suppress kernel/initrd progress messages, except in recovery mode.
    - Show the boot menu if the previous boot failed.
    - Don't generate device.map during grub-install or grub-mkconfig.
    - Adjust upgrade version checks for Ubuntu.
    - Suppress "GRUB loading" message unless Shift is held down.
    - Adjust versions of grub-doc and grub-legacy-doc conflicts.
    - Fix LVM/RAID probing in the absence of /boot/grub/device.map.
    - Look for .mo files in /usr/share/locale-langpack first.
    - Build-depend on qemu-kvm rather than qemu-system for grub-pc tests.
    - Check hardware support before using gfxpayload=keep.
    - Put second and subsequent Linux menu entries in a submenu.
    - Preferred resolution detection for VBE.
    - Set vt.handoff=7 for smooth handoff to kernel graphical mode.
    - Update default/grub.md5sum to include maverick's default md5sum.
    - In recovery mode, add nomodeset to the Linux kernel arguments, and
      remove the 'set gfxpayload=keep' command.
    - Skip Windows os-prober entries on Wubi systems, and suppress the menu
      by default if those are the only other-OS entries.
    - Handle probing striped DM-RAID devices.
    - Replace 'single' by 'recovery' when friendly-recovery is installed.
    - Use qemu -no-kvm in tests for now to work around LP #947597.
    - Disable cursor as early as possible in grub_main.

grub2 (1.99-18) unstable; urgency=low

  [ Colin Watson ]
  * Ensure that /sbin and /usr/sbin are in $PATH when running tests (closes:
    #662916).
  * mkconfig_loopback.patch: Use different GRUB loop devices for different
    OS loop devices (thanks, bcbc; LP: #888281).
  * Backport from upstream:
    - Add support for LZO compression in btrfs (LP: #727535).
    - Fix efiemu configure check.

  [ Ilya Yanok ]
  * Backport from upstream:
    - Make FAT UUID uppercase to match Linux (LP: #948716).

  [ Debconf translations ]
  * Norwegian Bokmål (Hans Fredrik Nordhaug).
  * Gujarati (Kartik Mistry). Closes: #663542
 -- Colin Watson <email address hidden> Mon, 19 Mar 2012 20:00:22 +0000

Changed in grub2 (Ubuntu):
status: Fix Committed → 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.