[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26815: [PATCH v4 3/3] vm: Add UEFI loader to disk images.
From: |
Marius Bakke |
Subject: |
bug#26815: [PATCH v4 3/3] vm: Add UEFI loader to disk images. |
Date: |
Thu, 18 May 2017 18:21:35 +0200 |
User-agent: |
Notmuch/0.24.1 (https://notmuchmail.org) Emacs/25.2.1 (x86_64-unknown-linux-gnu) |
Ludovic Courtès <address@hidden> writes:
>> +++ b/gnu/system/vm.scm
>> @@ -228,11 +229,23 @@ the image."
>> #:system-directory #$os-drv))
>> (partitions (list (partition
>> (size #$(- disk-image-size
>> - (* 10 (expt 2 20))))
>> + (* 50 (expt 2 20))))
>> (label #$file-system-label)
>> (file-system #$file-system-type)
>> (flags '(boot))
>> - (initializer initialize)))))
>> + (initializer initialize))
>> + ;; Append a small EFI System Partition
>> for
>> + ;; use with UEFI bootloaders.
>> + (partition
>> + ;; The standalone grub image is about
>> 10MiB, but
>> + ;; leave some room for custom or
>> multiple images.
>> + (size (* 40 (expt 2 20)))
>> + (label "GNU-ESP")
>> ;cosmetic only
>> + ;; Use "vfat" here since this property
>> is used
>> + ;; when mounting. The actual FAT-ness
>> is based
>> + ;; on filesystem size (16 in this
>> case).
>> + (file-system "vfat")
>> + (flags '(esp))))))
>> (initialize-hard-disk "/dev/vda"
>> #:partitions partitions
>> #:bootloader-package
>
> I thought we’d pass something like
>
> (initialize-hard-disk … #:grub-efi #$grub-eif)
>
> to avoid the ambiguity?
Thanks for the hint. With the attached patch, grub-efi is now passed
through to "install-efi". I haven't tested it on "version-0.13.0" but
assume it will work.
Now, I would like to instead implement an #:efi-loader keyword, and pass
it a derivation for the standalone EFI blob, but I'm not sure if I can
do that before the weekend. What do you think, is this "good enough" for
the time being?
> Once we’re done with that, we’ll have to update one of the
> ‘operating-system’ declaration examples to show UEFI configuration, and
> to update the doc to explain the installation process for UEFI.
I'll get on that.
0001-vm-Initialize-hard-disk-now-takes-a-grub-efi-paramet.patch
Description: Text Data
signature.asc
Description: PGP signature
- bug#26815: [PATCH 3/3] vm: Support EFI boot in base image., (continued)
- bug#26815: [PATCH 3/3] vm: Support EFI boot in base image., Ludovic Courtès, 2017/05/13
- bug#26815: [PATCH 3/3] vm: Support EFI boot in base image., Ludovic Courtès, 2017/05/16
- bug#26815: [PATCH 3/3] vm: Support EFI boot in base image., Marius Bakke, 2017/05/17
- bug#26815: [PATCH 3/3] vm: Support EFI boot in base image., Marius Bakke, 2017/05/17
- bug#26815: [PATCH 3/3] vm: Support EFI boot in base image., Ricardo Wurmus, 2017/05/17
- bug#26815: [PATCH 3/3] vm: Support EFI boot in base image., Ludovic Courtès, 2017/05/17
- bug#26815: [PATCH v4 1/3] vm: Support arbitrary partition flags., Marius Bakke, 2017/05/17
- bug#26815: [PATCH v4 2/3] vm: Support creating FAT partitions., Marius Bakke, 2017/05/17
- bug#26815: [PATCH v4 3/3] vm: Add UEFI loader to disk images., Marius Bakke, 2017/05/17
- bug#26815: [PATCH v4 3/3] vm: Add UEFI loader to disk images., Ludovic Courtès, 2017/05/17
- bug#26815: [PATCH v4 3/3] vm: Add UEFI loader to disk images.,
Marius Bakke <=
- bug#26815: [PATCH v4 3/3] vm: Add UEFI loader to disk images., Marius Bakke, 2017/05/18
- bug#26815: [PATCH v4 3/3] vm: Add UEFI loader to disk images., Ludovic Courtès, 2017/05/18
- bug#26815: [PATCH v4 3/3] vm: Add UEFI loader to disk images., Marius Bakke, 2017/05/19
- bug#26815: [PATCH v4 3/3] vm: Add UEFI loader to disk images., Mathieu Othacehe, 2017/05/19
- bug#26815: [PATCH v4 3/3] vm: Add UEFI loader to disk images., Marius Bakke, 2017/05/19
- bug#26815: [PATCH v4 3/3] vm: Add UEFI loader to disk images., Ludovic Courtès, 2017/05/20
- bug#26815: [PATCH v4 3/3] vm: Add UEFI loader to disk images., Mathieu Othacehe, 2017/05/20
- bug#26815: [PATCH v4 3/3] vm: Add UEFI loader to disk images., Marius Bakke, 2017/05/20
- bug#26815: [PATCH v4 3/3] vm: Add UEFI loader to disk images., Ludovic Courtès, 2017/05/20
- bug#26815: [PATCH v4 3/3] vm: Add UEFI loader to disk images., Mathieu Othacehe, 2017/05/20