From: jbranso@dismail.de
To: "Giovanni Biscuolo" <g@xelera.eu>, guix-devel@gnu.org
Subject: Re: cannot boot after installation on VPS (via rescue system)
Date: Wed, 21 Feb 2024 17:58:16 +0000 [thread overview]
Message-ID: <d8f178a549c07d4a02b23f6cd172c3f03c4e73a0@dismail.de> (raw)
In-Reply-To: <87zfvu5eif.fsf@xelera.eu>
February 21, 2024 at 4:54 AM, "Giovanni Biscuolo" <g@xelera.eu> wrote:
>
> 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
>
> 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):
>
I just logged into my linode server...your script defaults to a btrfs
filesystem right? When I tried to add an additional disk in linode
just now, the only supported filesystem was ext4. Does linode support
btrfs?
Joshua
> --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-mount-points.txt: automatically collected during installation
>
> 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
>
> --
> Giovanni Biscuolo
>
> Xelera IT Infrastructures
>
next prev parent reply other threads:[~2024-02-21 19:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-21 9:54 cannot boot after installation on VPS (via rescue system) Giovanni Biscuolo
2024-02-21 17:58 ` jbranso [this message]
2024-02-22 7:16 ` Giovanni Biscuolo
2024-02-22 8:07 ` Saku Laesvuori
2024-02-22 8:55 ` Giovanni Biscuolo
2024-02-22 0:30 ` Wojtek Kosior via Development of GNU Guix and the GNU System distribution.
2024-02-22 7:25 ` Giovanni Biscuolo
2024-02-22 9:37 ` Wojtek Kosior via Development of GNU Guix and the GNU System distribution.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d8f178a549c07d4a02b23f6cd172c3f03c4e73a0@dismail.de \
--to=jbranso@dismail.de \
--cc=g@xelera.eu \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).