assembler/qemu: clarify module usage for grub2

Explain the concept and reason behind the grub2 core as well as the
details behind the selection of the core  modules that get included.
Also elaborate a bit on the MBR gap. For more details about this see
https://en.wikipedia.org/wiki/GNU_GRUB#Version_2_(GRUB_2)
NB: This commit also changes the order of the grub modules, which in
turn changes the layout of the core.img and thus the hash value used
in the test; adapt those value to reflect the changed core.img.
This commit is contained in:
Christian Kellner 2019-12-19 13:13:03 +01:00 committed by Tom Gundersen
parent 828b568734
commit c57da5722f
2 changed files with 26 additions and 14 deletions

View file

@ -98,7 +98,7 @@ class TestAssemblers(osbuildtest.TestCase):
self.assertPartitionTable(device, "dos", options["ptuuid"], 1, boot_partition=1)
self.assertGRUB2(device,
"26e3327c6b5ac9b5e21d8b86f19ff7cb4d12fb2d0406713f936997d9d89de3ee",
"1ebb35399388ba4007cee817a066570db948c450da911a3db67dba8083be247d",
"18031c9465e3f9ccb9aeb9c8e59dec6b82e91376e2628c8100b5461af62ad67c",
1024 * 1024)
self.assertFilesystem(device + "p1", options["root_fs_uuid"], "ext4", tree_id)