mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
image: Remove conflicting user-provided EFI file system.
When the image type is "raw" or derived from it (such as "qcow2"), an ESP partition and file system is already added by the image generator. If a conflicting user-provided EFI file system is provided, it causes the boot to fail, as happens for the lightweight-desktop.tmpl and desktop.tmpl templates under gnu/system/examples. * gnu/system/image.scm (operating-system-for-image): Remove file systems whose mount point is "/boot/efi".
This commit is contained in:
parent
82ffc79f8a
commit
1ec366cdfd
1 changed files with 3 additions and 1 deletions
|
@ -576,7 +576,9 @@ (define (root-uuid os)
|
|||
(file-systems-to-keep
|
||||
(srfi-1:remove
|
||||
(lambda (fs)
|
||||
(string=? (file-system-mount-point fs) "/"))
|
||||
(let ((mount-point (file-system-mount-point fs)))
|
||||
(or (string=? mount-point "/")
|
||||
(string=? mount-point "/boot/efi"))))
|
||||
(operating-system-file-systems base-os)))
|
||||
(format (image-format image))
|
||||
(os
|
||||
|
|
Loading…
Reference in a new issue