Hi,

I want to create a bootable guixsd installation for an EFI x86-64 computer. But I don't want to use the installation disk, but create that from an existing guixsd system. The existing system is a BIOS system (and I'm running it inside qemu).

The new system will be installed on a black harddrive, so I will call it 'black'. (But note, that I haven't connected it yet. I'm using a qcow image instead.) I manually partitioned the black drive, I created a fat, swap and ext4 partition with the same uuids as in the system configuration 'liteon.scm' and mounted the / and efi partition:
sdb             8:16   0 111,8G  0 disk
├─sdb1          8:17   0   549M  0 part  /mnt/boot/efi
├─sdb2          8:18   0   7,5G  0 part
└─sdb3          8:19   0 103,8G  0 part  /mnt


Inside the existing system I ran:
$ guix system init liteon.scm /mnt/
... downloaded everything. errord out because of missing rights
$ sudo guix system init liteon.scm  /mnt/
Passwort:
/gnu/store/69gsk4rzz7gfa73qpzj2rfw5hs9d3pl5-system
/gnu/store/ay76p7yzy90r0yi3fg4s8c2sg8c36j7y-grub.cfg

Betriebssystem unter „/mnt/“ wird initialisiert …
Nach „/mnt“ kopieren …
populating '/mnt'...
substitute: Liste der Substitute von „https://ci.guix.gnu.org“ wird aktualisiert … 100.0%
Folgende Ableitungen werden erstellt:
   /gnu/store/42afgd18szcic0hiqmqqvnvnwl7gxkd1-install-bootloader.scm.drv
   /gnu/store/akdppfv8bfyx3qzkjb2hzphlvp7ncq9r-module-import.drv
   /gnu/store/bnjl98z303ax2qx8iwai3dhgzsfnsgsm-module-import.drv

1,4 MB werden heruntergeladen
module-import-compiled 689KiB 2.3MiB/s 00:00 [##################] 100.0% module-import-compiled 689KiB 2.6MiB/s 00:00 [##################] 100.0% /gnu/store/akdppfv8bfyx3qzkjb2hzphlvp7ncq9r-module-import.drv wird erstellt … /gnu/store/bnjl98z303ax2qx8iwai3dhgzsfnsgsm-module-import.drv wird erstellt … /gnu/store/42afgd18szcic0hiqmqqvnvnwl7gxkd1-install-bootloader.scm.drv wird erstellt … guix system: error: '/gnu/store/mb7sg4q398ikdlx56whp2p8msa8pyakw-grub-efi-2.04/sbin/grub-install --boot-directory /mnt/boot --bootloader-id=Guix --efi-directory /mnt/boot/efi' exited with status 1; output follows:


/gnu/store/mb7sg4q398ikdlx56whp2p8msa8pyakw-grub-efi-2.04/sbin/grub-install: Fehler: /gnu/store/mb7sg4q398ikdlx56whp2p8msa8pyakw-grub-efi-2.04/lib/grub/i386-pc/modinfo.sh existiert nicht. Bitte geben Sie --target oder --directory an.

grub-install wants an explicit target architecture. I didn't find anything in the guix-doc (the bootloader documentation). So I just tried to manually edit and run the failing command: $ sudo /gnu/store/mb7sg4q398ikdlx56whp2p8msa8pyakw-grub-efi-2.04/sbin/grub-install --boot-directory /mnt/boot --bootloader-id=Guix --efi-directory /mnt/boot/efi --target=x86_64-efi
Passwort:
x86_64-efi wird für Ihre Plattform installiert.
EFI variables are not supported on this system.
EFI variables are not supported on this system.
/gnu/store/mb7sg4q398ikdlx56whp2p8msa8pyakw-grub-efi-2.04/sbin/grub-install: Fehler: efibootmgr schlug beim Registrieren des Boot-Eintrags fehl: Datei oder Verzeichnis nicht gefunden.

Then I tried
;; This is an operating system configuration generated
;; by the graphical installer.

(use-modules (gnu))
(use-service-modules desktop networking ssh xorg)

(operating-system
  (locale "de_DE.utf8")
  (timezone "Europe/Berlin")
  (keyboard-layout (keyboard-layout "de" "neo"))
  (host-name "geex")
  (users (cons* (user-account
                  (name "mcd")
                  (comment "Martin")
                  (group "users")
                  (home-directory "/home/mcd")
                  (supplementary-groups
                    '("wheel" "netdev" "audio" "video")))
                %base-user-accounts))
  (packages
    (append
      (list (specification->package "nss-certs"))
      %base-packages))
  (services
    (append
      (list (service xfce-desktop-service-type)
            (service openssh-service-type)
            (set-xorg-configuration
              (xorg-configuration
                (keyboard-layout keyboard-layout))))
      %desktop-services))
  (bootloader
    (bootloader-configuration
      (bootloader grub-efi-bootloader)
      (target "/boot/efi")
      (keyboard-layout keyboard-layout)))
  (swap-devices
    (list (uuid "30bbe6de-b824-4d8a-bc12-3dc8c7b46467")))
  (file-systems
    (cons* (file-system
             (mount-point "/")
             (device
                (uuid "8757ed03-b543-4416-8779-1fff91a4d027"
					'ext4))
             (type "ext4"))
           (file-system
             (mount-point "/boot/efi")
             (device
                (uuid "257E-79BA" 'fat32))
             (type "vfat"))
           %base-file-systems)))

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to