> --8<---------------cut here---------------start------------->8--- > > Scanning for Btrfs filesystems > ice-9/boot9.scm:1685:16: In procedure raise-exception: > In procedure mount: No such file or directory > GRUB loading... > Entering a new prompt. Type ',bt' for a backtrace or ',q' to continue. > [...] > scheme@(guile-user)> ,bt > In gnu/build/linux-boot.scm: > 637:8 3 (_) > 435:8 2 (mount-root-filesystem "/dev/sda3" "btrfs" # _ #:flags ?) > In unknown file: > 1 (mount "/dev/sda3" "/root" "btrfs" 0 "compress=zstd") > In ice-9/boot9.scm: > 1685:16: 0 (raise-exception _ #:continuable? _) > > --8<---------------cut here---------------end--------------->8--- Maybe the device file is called different from /dev/sda3? On one VPS of mine (which also happens to have Guix installed via rescue mode) the root is mounted from /dev/vda1. > In particular, I don't understand why the boot script is trying to mount > the root filesystem at "/root" and not at "/" as it should: am I missing > something? Linux-based systems typically start with initrd filesystem mounted at /. They then mount the real root at some subdirectory of / and use either chroot or pivot-root system call to make the processes see it as if it were mounted at / in the first place. I'm not an expert in early boot process so please forgive me any mistakes I might have made in this explanation :) Best, Wojtek -- (sig_start) website: https://koszko.org/koszko.html fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A follow me on Fediverse: https://friendica.me/profile/koszko/profile ♥ R29kIGlzIHRoZXJlIGFuZCBsb3ZlcyBtZQ== | ÷ c2luIHNlcGFyYXRlZCBtZSBmcm9tIEhpbQ== ✝ YnV0IEplc3VzIGRpZWQgdG8gc2F2ZSBtZQ== | ? U2hhbGwgSSBiZWNvbWUgSGlzIGZyaWVuZD8= -- (sig_end) On Wed, 21 Feb 2024 10:54:16 +0100 Giovanni Biscuolo wrote: > From: Giovanni Biscuolo > To: guix-devel@gnu.org > Subject: cannot boot after installation on VPS (via rescue system) > Date: Wed, 21 Feb 2024 10:54:16 +0100 > Sender: guix-devel-bounces+koszko=koszko.org@gnu.org > Organization: Xelera.eu > > Hello, > > following the good guidelines from (info "(guix-cookbook) Running Guix > on a Kimsufi Server") and (info "(guix-cookbook) Running Guix on a > Linode Server") I'm developing a shell script to automate the "manual" > installation of Guix on bare metal and VPS, you can find it attached to > this email as bootstrap-guix.sh or at this git repo URL: > https://gitlab.com/softwareworkers/swws/-/blob/master/infrastructure/hosts/cornouiller/bootstrap-guix.sh?ref_type=heads > > > [bootstrap-guix.sh text/x-sh (11954 bytes)] > > > The main purpose of the script is to allow me to install Guix on > machines (bare metal or virtual) hosted by vendors who do not offer Guix > in their OS installation options, since almost all vendors provides a > rescue system that can be used to "manually" set up the environment, > partition the target disk and lastly "guix system init..." > > I've extensively tested the script locally (on bare metal and QEMU VMs), > both booting the machines via grml [1] and Guix install image and it > works as expected; I've also used it to install Guix on some bare metal. > > Now I'm trying to use it on two VPS from two different vendors, booted > in rescue mode, but after the installation (via bootstrap-guix.sh) when > I reboot the VPS I get the usual grub menu but the boot process suddenly > fails with this error (manually copied from web console, sorry for > possible typos): > > --8<---------------cut here---------------start------------->8--- > > Scanning for Btrfs filesystems > ice-9/boot9.scm:1685:16: In procedure raise-exception: > In procedure mount: No such file or directory > GRUB loading... > Entering a new prompt. Type ',bt' for a backtrace or ',q' to continue. > [...] > scheme@(guile-user)> ,bt > In gnu/build/linux-boot.scm: > 637:8 3 (_) > 435:8 2 (mount-root-filesystem "/dev/sda3" "btrfs" # _ #:flags ?) > In unknown file: > 1 (mount "/dev/sda3" "/root" "btrfs" 0 "compress=zstd") > In ice-9/boot9.scm: > 1685:16: 0 (raise-exception _ #:continuable? _) > > --8<---------------cut here---------------end--------------->8--- > > In particular, I don't understand why the boot script is trying to mount > the root filesystem at "/root" and not at "/" as it should: am I missing > something? > > I suspect that the issue depends on how the rescue system root is > mounted (overlay filesystem) but I'm not sure; I cannot find a solution. > > I'm also attaching: > > - bootstrap-config.scm: automatically generated by the script and used > by "guix system init..." > > > [bootstrap-config.scm text/x-script.guile (2097 bytes)] > > > - bootstrap-mount-points.txt: automatically collected during installation > > > [bootstrap-mount-points.txt text/plain (2833 bytes)] > > > You can find all the files also here: > https://gitlab.com/softwareworkers/swws/-/tree/master/infrastructure/hosts/cornouiller?ref_type=heads > > Any idea please? :-O > > Happy hacking! Gio' > > > > [1] https://grml.org/, a rescue system based on Debian > >