Skip to content

GRUB env block corrupt at first boot on aarch #2986

@marta-lewandowska

Description

@marta-lewandowska

We have this bug for fedora https://bugzilla.redhat.com/show_bug.cgi?id=2457333 which only appears on Live ISOs created by kiwi on aarch64. While I'm certainly not sure that kiwi is causing this, but I would love to have someone take a look.
Already on the iso the grubenv looks like:

jlinton@fedora:/boot/grub2$ hexdump -C grubenv 
00000000  23 20 47 52 55 42 20 45  6e 76 69 72 6f 6e 6d 65  |# GRUB Environme|
00000010  6e 74 20 42 6c 6f 63 6b  0a 23 20 57 41 52 4e 49  |nt Block.# WARNI|
00000020  4e 47 3a 20 44 6f 20 6e  6f 74 20 65 64 69 74 20  |NG: Do not edit |
00000030  74 68 69 73 20 66 69 6c  65 20 62 79 20 74 6f 6f  |this file by too|
00000040  6c 73 20 6f 74 68 65 72  20 74 68 61 6e 20 67 72  |ls other than gr|
00000050  75 62 2d 65 64 69 74 65  6e 76 21 21 21 0a 65 6e  |ub-editenv!!!.en|
00000060  76 5f 62 6c 6f 63 6b 3d  35 31 32 2b 31 0a 73 61  |v_block=512+1.sa|
00000070  76 65 64 5f 65 6e 74 72  79 3d 65 39 61 30 32 34  |ved_entry=e9a024|
00000080  34 33 33 36 38 31 34 64  31 31 39 65 62 62 32 62  |4336814d119ebb2b|
00000090  37 32 39 30 35 37 36 36  37 65 2d 36 2e 31 39 2e  |729057667e-6.19.|
000000a0  31 30 2d 33 30 30 2e 66  63 34 34 2e 61 61 72 63  |10-300.fc44.aarc|
000000b0  68 36 34 0a 6d 65 6e 75  5f 61 75 74 6f 5f 68 69  |h64.menu_auto_hi|
000000c0  64 65 3d 31 0a 62 6f 6f  74 5f 73 75 63 63 65 73  |de=1.boot_succes|
000000d0  73 3d 31 0a 23 23 23 23  23 23 23 23 23 23 23 23  |s=1.############|
000000e0  23 23 23 23 23 23 23 23  23 23 23 23 23 23 23 23  |################|
*
00000400

The offending line being: env_block=512+1 This causes an error to get written out and the GRUB menu doesn't show. Removing the grubenv and recreating it via grub2-editenv does not write out this line.

This is related to a btrfs patch set that was requested: https://bugzilla.redhat.com/show_bug.cgi?id=2372973 and subsequently sent upstream & pulled into fedora. It seems to be doing what's expected in other environments than this Live ISO, though, which is why I'm suspecting kiwi. ;)

thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions