Bug#1026091: grub-pc unable to boot from btrfs compressed partition on 32-bit systems
axet at me.com
axet at me.com
Wed Dec 14 16:30:28 GMT 2022
Package: grub-pc
Version: 2.06-7
Severity: normal
Dear Maintainer,
grub-pc unable to boot from btrfs compressed /boot directory. Removing
compressing flag using 'chattr -c -R /boot' allows system to boot.
Problem does not present on 64-bit systems.
Boot order:
1) Loading Grub...
2) Welcome to GRUB
3) never appear: loading grub.cfg
Full logs:
https://linux-hardware.org/?probe=4e9f8e4c01
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/sda2 / btrfs rw,relatime,space_cache,subvolid=5,subvol=/ 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_cutmem ###
insmod echo
echo loading grub.cfg
insmod mmap
cutmem 0x00000000 0x00000fff
cutmem 0x000a0000 0x000fffff
cutmem 0x7e400000 0x7fffffff
### END /etc/grub.d/00_cutmem ###
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
terminal_input console
terminal_output console
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-8bb11a0a-67b6-45a9-b1ea-bac37a17533b' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk at 0,gpt2' --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 8bb11a0a-67b6-45a9-b1ea-bac37a17533b
else
search --no-floppy --fs-uuid --set=root 8bb11a0a-67b6-45a9-b1ea-bac37a17533b
fi
echo 'Loading Linux 6.0.0-5-686 ...'
linux /boot/vmlinuz-6.0.0-5-686 root=UUID=8bb11a0a-67b6-45a9-b1ea-bac37a17533b ro mem=2020M
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.0.0-5-686
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-8bb11a0a-67b6-45a9-b1ea-bac37a17533b' {
menuentry 'Debian GNU/Linux, with Linux 6.0.0-5-686' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.0.0-5-686-advanced-8bb11a0a-67b6-45a9-b1ea-bac37a17533b' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk at 0,gpt2' --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 8bb11a0a-67b6-45a9-b1ea-bac37a17533b
else
search --no-floppy --fs-uuid --set=root 8bb11a0a-67b6-45a9-b1ea-bac37a17533b
fi
echo 'Loading Linux 6.0.0-5-686 ...'
linux /boot/vmlinuz-6.0.0-5-686 root=UUID=8bb11a0a-67b6-45a9-b1ea-bac37a17533b ro mem=2020M
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.0.0-5-686
}
menuentry 'Debian GNU/Linux, with Linux 6.0.0-5-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.0.0-5-686-recovery-8bb11a0a-67b6-45a9-b1ea-bac37a17533b' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk at 0,gpt2' --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 8bb11a0a-67b6-45a9-b1ea-bac37a17533b
else
search --no-floppy --fs-uuid --set=root 8bb11a0a-67b6-45a9-b1ea-bac37a17533b
fi
echo 'Loading Linux 6.0.0-5-686 ...'
linux /boot/vmlinuz-6.0.0-5-686 root=UUID=8bb11a0a-67b6-45a9-b1ea-bac37a17533b ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.0.0-5-686
}
menuentry 'Debian GNU/Linux, with Linux 5.19.0-2-686' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.19.0-2-686-advanced-8bb11a0a-67b6-45a9-b1ea-bac37a17533b' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk at 0,gpt2' --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 8bb11a0a-67b6-45a9-b1ea-bac37a17533b
else
search --no-floppy --fs-uuid --set=root 8bb11a0a-67b6-45a9-b1ea-bac37a17533b
fi
echo 'Loading Linux 5.19.0-2-686 ...'
linux /boot/vmlinuz-5.19.0-2-686 root=UUID=8bb11a0a-67b6-45a9-b1ea-bac37a17533b ro mem=2020M
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.19.0-2-686
}
menuentry 'Debian GNU/Linux, with Linux 5.19.0-2-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.19.0-2-686-recovery-8bb11a0a-67b6-45a9-b1ea-bac37a17533b' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk at 0,gpt2' --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 8bb11a0a-67b6-45a9-b1ea-bac37a17533b
else
search --no-floppy --fs-uuid --set=root 8bb11a0a-67b6-45a9-b1ea-bac37a17533b
fi
echo 'Loading Linux 5.19.0-2-686 ...'
linux /boot/vmlinuz-5.19.0-2-686 root=UUID=8bb11a0a-67b6-45a9-b1ea-bac37a17533b ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.19.0-2-686
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+x32.bin)" {
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk at 0,gpt2' --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 8bb11a0a-67b6-45a9-b1ea-bac37a17533b
else
search --no-floppy --fs-uuid --set=root 8bb11a0a-67b6-45a9-b1ea-bac37a17533b
fi
linux /boot/memtest86+x32.bin
}
menuentry 'Memory test (memtest86+x32.bin, serial console)' {
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk at 0,gpt2' --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 8bb11a0a-67b6-45a9-b1ea-bac37a17533b
else
search --no-floppy --fs-uuid --set=root 8bb11a0a-67b6-45a9-b1ea-bac37a17533b
fi
linux /boot/memtest86+x32.bin console=ttyS0,115200
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg
*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat
*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 9 Dec 13 19:57 ata-FUJITSU_MHV2120AH_NT59T7C2S0BV -> ../../sda
lrwxrwxrwx 1 root root 10 Dec 13 19:58 ata-FUJITSU_MHV2120AH_NT59T7C2S0BV-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Dec 13 19:58 ata-FUJITSU_MHV2120AH_NT59T7C2S0BV-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 13 19:58 ata-FUJITSU_MHV2120AH_NT59T7C2S0BV-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Dec 13 19:58 ata-FUJITSU_MHV2120AH_NT59T7C2S0BV-part4 -> ../../sda4
lrwxrwxrwx 1 root root 9 Dec 13 19:57 ata-QSI_CD-RW_DVD-ROM_SBW-242 -> ../../sr0
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Dec 13 19:58 59e9448b-190e-4737-8406-3899e3585d51 -> ../../sda4
lrwxrwxrwx 1 root root 10 Dec 13 19:58 8bb11a0a-67b6-45a9-b1ea-bac37a17533b -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 13 19:58 ff8c3a65-bb14-476d-b35d-f5f39df1c3e4 -> ../../sda3
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 6.0.0-5-686 (SMP w/1 CPU thread; PREEMPT)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages grub-pc depends on:
ii debconf [debconf-2.0] 1.5.80
ii grub-common 2.06-7
ii grub-pc-bin 2.06-7
ii grub2-common 2.06-7
ii ucf 3.0043
grub-pc recommends no packages.
grub-pc suggests no packages.
-- debconf information:
grub-pc/postrm_purge_boot_grub: false
grub2/linux_cmdline_default:
grub2/force_efi_extra_removable: false
* grub-pc/install_devices: /dev/disk/by-id/ata-FUJITSU_MHV2120AH_NT59T7C2S0BV
grub-pc/hidden_timeout: false
grub2/kfreebsd_cmdline_default: quiet
grub-pc/timeout: 5
grub2/update_nvram: true
grub-pc/install_devices_failed_upgrade: true
grub-pc/mixed_legacy_and_grub2: true
grub-pc/install_devices_empty: false
grub2/linux_cmdline:
grub-pc/install_devices_disks_changed:
grub-pc/partition_description:
grub2/kfreebsd_cmdline:
grub-pc/install_devices_failed: false
grub-pc/chainload_from_menu.lst: true
grub-pc/kopt_extracted: false
grub-pc/disk_description:
More information about the Pkg-grub-devel
mailing list