all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#41560] [PATCH 0/8] image: Add MBR based boot support.
@ 2020-05-27  7:22 Mathieu Othacehe
  2020-05-27  7:24 ` [bug#41560] [PATCH 1/8] bootloader: Add 'disk-image-installer' Mathieu Othacehe
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Mathieu Othacehe @ 2020-05-27  7:22 UTC (permalink / raw)
  To: 41560; +Cc: Mathieu Othacehe

Hello,

Until now, only Grub EFI bootloader was supported in (gnu system
image). Installing Grub EFI is as simple as copying a binary (created with
grub-mkstandalone) in a dedicated partition.

Now, for MBR based booting, one needs to run grub-install that does require
root permissions. To overcome this issue, I used a hack inspired from OpenWrt
and Buildroot.

As grub-install is in fact a wrapper around grub-mkimage and grub-bios-setup,
it is possible, with some plumbing and using those two tools, to install Grub
on a raw disk-image, without root permissions.

Thanks,

Mathieu

Mathieu Othacehe (8):
  bootloader: Add 'disk-image-installer'.
  bootloader: grub: Do not run grub-install when creating a disk-image.
  bootloader: grub: Use inheritance to define grub-minimal-bootloader.
  image: Add bootloader installation support.
  system: image: Correct genimage configuration file indentation.
  image: Use grub-efi to install the EFI bootloader.
  system: image: Fix image-with-os.
  image: Do not use VM to create disk-images.

 gnu/bootloader.scm      |   5 +-
 gnu/bootloader/grub.scm |  80 ++++++++++++++++++++++------
 gnu/build/image.scm     |   9 +++-
 gnu/ci.scm              |  20 +++----
 gnu/system/image.scm    | 113 ++++++++++++++++++----------------------
 gnu/tests/install.scm   |   8 +--
 guix/scripts/system.scm |  16 +++---
 guix/utils.scm          |   5 ++
 8 files changed, 155 insertions(+), 101 deletions(-)

-- 
2.26.2





^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2020-05-29  8:46 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-27  7:22 [bug#41560] [PATCH 0/8] image: Add MBR based boot support Mathieu Othacehe
2020-05-27  7:24 ` [bug#41560] [PATCH 1/8] bootloader: Add 'disk-image-installer' Mathieu Othacehe
2020-05-27  7:24   ` [bug#41560] [PATCH 2/8] bootloader: grub: Do not run grub-install when creating a disk-image Mathieu Othacehe
2020-05-28 21:40     ` Ludovic Courtès
2020-05-27  7:24   ` [bug#41560] [PATCH 3/8] bootloader: grub: Use inheritance to define grub-minimal-bootloader Mathieu Othacehe
2020-05-27  7:24   ` [bug#41560] [PATCH 4/8] image: Add bootloader installation support Mathieu Othacehe
2020-05-27  7:24   ` [bug#41560] [PATCH 5/8] system: image: Correct genimage configuration file indentation Mathieu Othacehe
2020-05-27  7:24   ` [bug#41560] [PATCH 6/8] image: Use grub-efi to install the EFI bootloader Mathieu Othacehe
2020-05-28 21:44     ` Ludovic Courtès
2020-05-29  7:25       ` Mathieu Othacehe
2020-05-27  7:24   ` [bug#41560] [PATCH 7/8] system: image: Fix image-with-os Mathieu Othacehe
2020-05-27  7:24   ` [bug#41560] [PATCH 8/8] image: Do not use VM to create disk-images Mathieu Othacehe
2020-05-28 21:47     ` Ludovic Courtès
2020-05-29  7:27       ` bug#41560: " Mathieu Othacehe
2020-05-29  8:45         ` [bug#41560] " Jan Nieuwenhuizen
2020-05-28 21:37   ` [bug#41560] [PATCH 1/8] bootloader: Add 'disk-image-installer' Ludovic Courtès
2020-05-29  7:17     ` Mathieu Othacehe
2020-05-27  8:09 ` [bug#41560] [PATCH 0/8] image: Add MBR based boot support Jan Nieuwenhuizen
2020-05-28 21:32 ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.