From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KBivM/eV1mWf5gAAqHPOHw:P1 (envelope-from ) for ; Thu, 22 Feb 2024 01:31:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id KBivM/eV1mWf5gAAqHPOHw (envelope-from ) for ; Thu, 22 Feb 2024 01:31:51 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=Kp5BMT+L; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708561911; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=BaFOeUhGq3vE+suBSoQ5gO6FZJvOdM10jprp6447Vkk=; b=WZwdcp6dlmJ4Qg+paRPGBVod4DY+sybwTnMLp0ErDbSd7s8egff3PBK9jDmQyvfSWfFvoE Fqw3zPFyhLPM55mXGbeG+SJvqPlB5yYwxbVA/OB/2VmjH54KvuDowzEGi2KvamM7zow1yH nZ/1krT6YehjNiXbQn7oM9NUpJ3gBK5//R8ZtS7qlB9d/60wGY9mkxrxSug3mqhqPo0+2W 7ZbI4tghkU7MDRAON9RLQ/GwNbYR7w2Pu2xYaqEIN9JCFn2iX/JVaSi1DVBAEcFM3sVsai 80JWQslKfncRxPcslHa8nt1QxD8yQJ8nf029SceE9S/KSHCg9NPMwJ4DGxgBRQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=Kp5BMT+L; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708561911; a=rsa-sha256; cv=none; b=Suya7mh/9WJUbx8bwrMOwqSU63aP9KqQxK47V1YrqC0BnbUsfSe/+KmcLPtjG7rsFkvquM vxsIYbEiRC/qG0sR3A5UW7ge7lhJrqzbxXvTVK17FX3KX01+5c38jZjM3aQsvl2hc3L6g+ VmPvCAABJzNU1ViTk4Jvam1OrozN8TPrJH7+LbeV24kiNsYp0riBM+Du3jqDPvogFzzG05 iZy1j9Uisb7w4/eJMo1k2sECWhS7xGU3cfLxJp2zvPV2r4/0o/VuET5TF7/9rV98sd3fjx Vi4+hmrSa7jiCkMBxWbAyCHQ/eRsdpIWACDF/ugTemu0tclBgfU17inBq0mQlw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B66F73E294 for ; Thu, 22 Feb 2024 01:31:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcwzQ-0001me-DS; Wed, 21 Feb 2024 19:31:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rcwzJ-0001mD-1e for guix-devel@gnu.org; Wed, 21 Feb 2024 19:30:57 -0500 Received: from koszko.org ([93.95.227.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rcwzG-0000cg-Kr for guix-devel@gnu.org; Wed, 21 Feb 2024 19:30:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject :Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=BaFOeUhGq3vE+suBSoQ5gO6FZJvOdM10jprp6447Vkk=; b=Kp5BMT+L8lEzibQbvEm9a+JnB6 9M0/XD+9UuDm9lLwgwZP335eAbM1S24kNIj9B4QCduOlPSBeo10W+ue7AK7PiriCbtDbCFLO11rdm GPbco+JpISJrJMoCj6O3XeO5sxXLR2i3yDBhOyJrAabc309X7gqat7YIm9TOU0GdIrqGL8YxMXHVu rb0i8nWGXz/GJdYsPOl7sJqUAjFmZ17sIVLgnuwVLVPajLREbv5OZJEAKQ7rLrvrgBExV2BFoH28m pat++OJRTxTQYliIBQX4jiLyBiPejqY+xlIcQNXAEzjalyqsFoQj7RZ0vM/DAJO+SfghKLOH+JvWl 8SUsaLW5IugLoHkSYRoeYsX4PDMQjjiVwbSiUSXQzkmoJXACAU7ofjYgJx5LA0zbVDpzOgwmJTOJp 3+gjdmo5HaXowBSlRDk32F7Rw+Vwj1SthAlpB89MZq/76yB46vqY4rGmZwjWskCorVEvXiZ4Kxz/8 y9t6sAaQWPN+48Pbpquz9cFzrDdwrincusZxlkDCAUWcEEI6D2Txl5CPMm20JtRn9p2IpYVdnQ/iC fc8LPAmn8wNcYv7fTfTR1QvyHzg8vrADNZ/Hq+kyNgDJjtVMXl3BAgjebbeJmgk8fysoPkwgughaU AFoEOvxcvJ+SVLGDBetF+W6SGaZfcSiu3taHP8URI=; Received: from 78-11-235-220.static.ip.netia.com.pl ([78.11.235.220] helo=localhost) by koszko.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.1) (envelope-from ) id 1rcwz7-000244-15; Thu, 22 Feb 2024 01:30:45 +0100 Date: Thu, 22 Feb 2024 01:30:43 +0100 To: Giovanni Biscuolo Cc: guix-devel@gnu.org Subject: Re: cannot boot after installation on VPS (via rescue system) Message-ID: <20240222013043.3b8945a0.koszko@koszko.org> In-Reply-To: <87zfvu5eif.fsf@xelera.eu> References: <87zfvu5eif.fsf@xelera.eu> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/Ua9zXfP68ewW=bpRhssN_Pp"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=93.95.227.159; envelope-from=koszko@koszko.org; helo=koszko.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Wojtek Kosior From: Wojtek Kosior via "Development of GNU Guix and the GNU System distribution." Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.87 X-Spam-Score: -8.87 X-Migadu-Queue-Id: B66F73E294 X-Migadu-Scanner: mx13.migadu.com X-TUID: 4XFP9lUf6raY --Sig_/Ua9zXfP68ewW=bpRhssN_Pp Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > --8<---------------cut here---------------start------------->8--- >=20 > 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=3Dzstd") > In ice-9/boot9.scm: > 1685:16: 0 (raise-exception _ #:continuable? _) >=20 > --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 =E2=99=A5 R29kIGlzIHRoZXJlIGFuZCBsb3ZlcyBtZQ=3D=3D | =C3=B7 c2luIHNlcGFyYXR= lZCBtZSBmcm9tIEhpbQ=3D=3D =E2=9C=9D YnV0IEplc3VzIGRpZWQgdG8gc2F2ZSBtZQ=3D=3D | ? U2hhbGwgSSBiZWNvbWUg= SGlzIGZyaWVuZD8=3D -- (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=3Dkoszko.org@gnu.org > Organization: Xelera.eu >=20 > Hello, >=20 > 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/host= s/cornouiller/bootstrap-guix.sh?ref_type=3Dheads >=20 >=20 > [bootstrap-guix.sh text/x-sh (11954 bytes)]=20 >=20 >=20 > 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..." >=20 > 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. >=20 > 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): >=20 > --8<---------------cut here---------------start------------->8--- >=20 > 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=3Dzstd") > In ice-9/boot9.scm: > 1685:16: 0 (raise-exception _ #:continuable? _) >=20 > --8<---------------cut here---------------end--------------->8--- >=20 > 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? >=20 > 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. >=20 > I'm also attaching: >=20 > - bootstrap-config.scm: automatically generated by the script and used > by "guix system init..." >=20 >=20 > [bootstrap-config.scm text/x-script.guile (2097 bytes)]=20 >=20 >=20 > - bootstrap-mount-points.txt: automatically collected during installation >=20 >=20 > [bootstrap-mount-points.txt text/plain (2833 bytes)]=20 >=20 >=20 > You can find all the files also here: > https://gitlab.com/softwareworkers/swws/-/tree/master/infrastructure/host= s/cornouiller?ref_type=3Dheads >=20 > Any idea please? :-O >=20 > Happy hacking! Gio' >=20 >=20 >=20 > [1] https://grml.org/, a rescue system based on Debian >=20 >=20 --Sig_/Ua9zXfP68ewW=bpRhssN_Pp Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCZdaVswAKCRBLxSIcWnn9 Gm6nAQCI7FIHR7qZCYA/18iKM8Paa/Bfs2G699BeVSwBBNdJtgEA0qLE3V6qBJHY bKj4sFuYKfhwEfx+1xsxZfVTT+R9Jwo= =fpT0 -----END PGP SIGNATURE----- --Sig_/Ua9zXfP68ewW=bpRhssN_Pp--