Hello,
I am trying to boot Guix System on the PC Engines APU2.
But, during the boot, it cannot mount the root file system.
I get an error message:
waiting for partition '38af4c98-31d9-c65a-217a-6a4d38af4c98' to appear...
waiting for partition '38af4c98-31d9-c65a-217a-6a4d38af4c98' to appear...
waiting for partition '38af4c98-31d9-c65a-217a-6a4d38af4c98' to appear...
ice-9/boot-9.scm:1705:22: In procedure raise-exception:
ERROR:
1. &partition-lookup-error: "38af4c98-31d9-c65a-217a-6a4d38af4c98"
# How I built the system
First, I defined an `operating-system', saved in a
"base-server-config.scm" file:
(define slo-game-base-os
(operating-system
(host-name "my-test-server")
(timezone "Europe/Zurich")
(locale "en_US.utf8")
(keyboard-layout (keyboard-layout "fr" "bepo"))
(file-systems (cons* (file-system
(device (file-system-label "GNU-ESP"))
(mount-point "/boot/efi")
(type "vfat"))
(file-system
(device (file-system-label "Guix_image"))
(mount-point "/")
(type "ext4"))
%base-file-systems))
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(targets '("/dev/sdX"))
(terminal-inputs '(console serial))
(terminal-outputs '(gfxterm serial))
(serial-unit 0)
(serial-speed 115200)))
(kernel-arguments (list "console=ttyS0,115200"))
(services (append (list (service dhcpcd-service-type)
(service agetty-service-type
(agetty-configuration
(tty "ttyS0")
(baud-rate 115200)))
(service openssh-service-type
(openssh-configuration
(openssh openssh-sans-x)
(password-authentication? #f)
(port-number 2222)
(authorized-keys
`(("me" ,(local-file
"ssh-keys/me.pub")))))))
%base-services))
(packages (cons screen %base-packages))
(users (cons (user-account
(name "me")
(comment "My account")
(group "users")
(supplementary-groups '("wheel"
"audio" "video")))
%base-user-accounts))))
slo-game-base-os
Then, I built an image with the command:
guix system image base-server-config.scm
After the image is built, I "dd" this image to an SD card. I put the SD
card into the PC Engines APU2, connect to its UART0 and connect the
power cable.
# What happened when boot
Grub boot successfully and the kernel start to boot. But after a moment,
I get the error messages:
waiting for partition '38af4c98-31d9-c65a-217a-6a4d38af4c98' to appear...
waiting for partition '38af4c98-31d9-c65a-217a-6a4d38af4c98' to appear...
waiting for partition '38af4c98-31d9-c65a-217a-6a4d38af4c98' to appear...
waiting for partition '38af4c98-31d9-c65a-217a-6a4d38af4c98' to appear...
waiting for partition '38af4c98-31d9-c65a-217a-6a4d38af4c98' to appear...
waiting for partition '38af4c98-31d9-c65a-217a-6a4d38af4c98' to appear...
ice-9/boot-9.scm:1705:22: In procedure raise-exception:
ERROR:
1. &partition-lookup-error: "38af4c98-31d9-c65a-217a-6a4d38af4c98"
Then, a Guile REPL start.
# What I have checked
On my PC, I have checked the ID of the root file system on the SD card.
It is the "38af4c98-31d9-c65a-217a-6a4d38af4c98". Which is correct.
I also tried to generate a qcow2 image and boot into a VM with
Gnome-box. The VM boot successfully and can mount the root file system
without any problem.
I wanted to try to boot on an USB device and I "dd" my raw image to an
USB drive. But the PC Engines APU 2 don't boot on this USB drive. I have
no other one. The APU2 also have a m-SATA and SATA interfaces. But I
have no SATA drive and no adapter to write on my spare m-SATA drive.
# What can I do ?
What can I do to find why the kernel cannot mount the root file system ?
Could you help me ?
Thank you very much. :)
Best regards
-------
Gendre Sébastien