image: Add a post-MBR gap to the default image.
authorMathieu Othacehe <othacehe@gnu.org>
Fri, 29 May 2020 07:05:53 +0000 (09:05 +0200)
committerMathieu Othacehe <othacehe@gnu.org>
Fri, 29 May 2020 07:10:27 +0000 (09:10 +0200)
commitb7b45372e713a53ffa852aec1d3bfb743bb79124
tree31c4f17f1c09473fc22afd2ed793217ddcf40ac4
parent749381051d9b43fd4944b44e734c6fd9fced9030
image: Add a post-MBR gap to the default image.

The generic 'efi-disk-image' needs to be bootable on systems without EFI. To
do that, GRUB is installed in the post-MBR gap. Make sure that the first
partition starts with an offset, to make this gap large enough for GRUB.

* gnu/system/image.scm (root-offset, root-label): New variables,
(esp-partition): use 'root-offset' as the partition offset,
(root-partition): use 'root-label' as the partition label.
gnu/system/image.scm