FS#23901 - [grub2] doesn't support lzo compressed btrfs
Attached to Project:
Arch Linux
Opened by Christian (kurisutian) - Saturday, 23 April 2011, 17:36 GMT
Last edited by Ronald van Haren (pressh) - Sunday, 15 January 2012, 11:03 GMT
Opened by Christian (kurisutian) - Saturday, 23 April 2011, 17:36 GMT
Last edited by Ronald van Haren (pressh) - Sunday, 15 January 2012, 11:03 GMT
|
Details
Description:
Grub2 won't boot from an lzo compressed btrfs root partition with no additional /boot partition. Additional info: grub2-bios 1.99~rc2-1 Steps to reproduce: Create a btrfs root partition without a separate /boot partition. Changing the fstab entry for the rootfs to use compression and specifically the lzo compression will not allow grub2 to boot. Grub2 could not handle this compression type. |
This task depends upon
Closed by Ronald van Haren (pressh)
Sunday, 15 January 2012, 11:03 GMT
Reason for closing: Fixed
Additional comments about closing: fixed with new bzr checkout
Sunday, 15 January 2012, 11:03 GMT
Reason for closing: Fixed
Additional comments about closing: fixed with new bzr checkout
Some of the changes needed in the PKGBUILDs are - no need for sed python to python2 in autogen.sh (http://bzr.savannah.gnu.org/lh/grub/trunk/grub/revision/3444), ntldr-img grub2-extras tarball needs to be updated to rev 20, lzo2 as depends (need to check using namcap though), no need for --program-transform-name=s,grub,grub, instead use --program-prefix="" .
Upstream additions in latest bzr since 1.99 release (as of rev 3456) - btrfs lzo support, LUKS support, non-512 byte aka 4K sector support, ahci module etc.
I'd like to close a few of the other feature requests for grub2 as well. It may take a week or so before I do all that as I have a few updates pending that I need to prioritize.
[edit] You can of course speed this all up as you've done in the past by sending me suggested changes :-)
PKGBUILDS
http://dl.dropbox.com/u/9710721/grub2/grub2-1%3A1.99-6.src.tar.gz
http://dl.dropbox.com/u/9710721/grub2/grub2-efi-x86_64-1%3A1.99-3.src.tar.gz
Updated source files
http://dl.dropbox.com/u/9710721/grub2/grub2_r3732.tar.xz
http://dl.dropbox.com/u/9710721/grub2/grub2_extras_ntldr-img_r20.tar.xz
(rest all ver not changed)
This should solve
1. This bug
2. https://bugs.archlinux.org/task/26430
3. https://bugs.archlinux.org/task/26463 (depends on 2)
4. https://bugs.archlinux.org/task/25551 (might be solved - I never encountered this bug)
5. https://bugs.archlinux.org/task/25816 (added note in separate post_install scripts)
About the 915resolution feature requests - seems like upstream is not interested in incorporating the changes. I have not added the patches as that feature is minor and the package can be easily recompiled if needed.
EDIT: I also removed automatic generation of grub.cfg using grub-mkconfig. Added a note in post_install scripts instead. This is due to problem with grub-probe unable to detect rootfs in certain configs (like no-initrd systems etc.). Also did not change the pkgver, simply bumped the pkgrel.
EDIT: Update from r3485 to r3732 .
Few changes: Use /usr/bin and /usr/sbin instead of /bin and /sbin . Temoparily disabled ntldr-img (compile error http://pastebin.com/hg1Qwpbq).
I'll get to it in one of the next few days.
EDIT: Added --disable-werror to ./configure and also updated all the patches.
EDIT: Just wanted to add that this grub2 pkgs update is required for tpowa's next Archboot iso to work (once my patch is applied there - requires grub-mkstandalone script).