GNU logs - #36054, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36054: [wishlist] Simplify chrooting into installed system from install image
Resent-From: "pelzflorian (Florian Pelz)" <pelzflorian@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sun, 02 Jun 2019 12:43:01 +0000
Resent-Message-ID: <handler.36054.B.155947935424504 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 36054
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 36054 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guix@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.155947935424504
          (code B ref -1); Sun, 02 Jun 2019 12:43:01 +0000
Received: (at submit) by debbugs.gnu.org; 2 Jun 2019 12:42:34 +0000
Received: from localhost ([127.0.0.1]:39652 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hXPon-0006NA-Ru
	for submit <at> debbugs.gnu.org; Sun, 02 Jun 2019 08:42:34 -0400
Received: from eggs.gnu.org ([209.51.188.92]:58381)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pelzflorian@HIDDEN>) id 1hXPom-0006My-Ac
 for submit <at> debbugs.gnu.org; Sun, 02 Jun 2019 08:42:33 -0400
Received: from lists.gnu.org ([209.51.188.17]:46599)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <pelzflorian@HIDDEN>)
 id 1hXPog-0006XV-Pq
 for submit <at> debbugs.gnu.org; Sun, 02 Jun 2019 08:42:27 -0400
Received: from eggs.gnu.org ([209.51.188.92]:44418)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <pelzflorian@HIDDEN>) id 1hXPof-0002Pd-Gd
 for bug-guix@HIDDEN; Sun, 02 Jun 2019 08:42:26 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <pelzflorian@HIDDEN>) id 1hXPg9-00078a-Co
 for bug-guix@HIDDEN; Sun, 02 Jun 2019 08:33:38 -0400
Received: from pelzflorian.de ([5.45.111.108]:47332 helo=mail.pelzflorian.de)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <pelzflorian@HIDDEN>)
 id 1hXPg8-00073p-OY
 for bug-guix@HIDDEN; Sun, 02 Jun 2019 08:33:37 -0400
Received: from pelzflorian.localdomain (unknown [5.45.111.108])
 by mail.pelzflorian.de (Postfix) with ESMTPSA id D84D036003D
 for <bug-guix@HIDDEN>; Sun,  2 Jun 2019 14:33:33 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de;
 s=mail; t=1559478813;
 bh=BryCsP1fCYYW6cP5Q0TpzvHUa6/3ZdU84hd6hyt1US4=;
 h=Date:From:To:Subject;
 b=cfpN9wgK9/Hkoc0WlzGNwMfUS+zUB83oU1WOPxjfJabB5SSXexDhtm1iEBj9Qdr3o
 BQOVl23MpmfBa3ycaOQBj0eieZ2zLaEDsPHpffwIzSAVzzWSgKAFgt9r2m0fmDY7gz
 kVwez8nzs6az2NdisJ2svhowoPxeOqyiX+LM3sXA=
Date: Sun, 2 Jun 2019 14:33:33 +0200
From: "pelzflorian (Florian Pelz)" <pelzflorian@HIDDEN>
Message-ID: <20190602123333.cjeqmrwz6be7uykd@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
User-Agent: NeoMutt/20180716
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 5.45.111.108
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: -1.4 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

When bootloader installation fails or when the installed bootloader
does not allow selecting old generations (like the U-Boot bootloader),
chrooting may become necessary to repair a broken Guix system.

Guix should offer officially supported instructions in the manual and
perhaps more tooling for chrooting into an installed Guix System from
a Guix install USB/DVD/SD (and perhaps from a foreign distro) to
enable debugging.

Arch has <https://wiki.archlinux.org/index.php/Chroot#Usage>.  They
offer an official arch-chroot script to chroot into an Arch system (it
is shipped with their install image) as well as documentation for
chrooting without the script.  Their documentation for chrooting
without the arch-chroot script also works on Guix, but some more steps
are required:

* Mounting the (perhaps encrypted) drive with the broken Guix System.
  This is not part of Arch=E2=80=99 chroot instructions, but could perhap=
s be
  part of a more interactive guix-chroot script, since Guix=E2=80=99 targ=
et
  audience is different from Arch=E2=80=99s.  Note that the name given to
  cryptsetup must be the same as specified in /etc/config.scm if one
  wishes to reconfigure from the chroot.

* When following the
  <https://wiki.archlinux.org/index.php/Chroot#Using_chroot>
  instructions from the Arch wiki (without rebinding /run), I can
  chroot into /run/current-system/profile/bin/bash.  What if the user
  wants a different shell and not bash?  This perhaps could be
  selectable in an (interactive?) guix-chroot script.

* Afterwards a Guix daemon must be started in the chroot to use Guix
  from within such a chroot.

* The /run/current-system/profile/etc/profile,
  ~/.guix-profile/etc/profile and ~/.config/guix/current/etc/profile
  need to be sourced to use the installed system=E2=80=99s Guix profile.

* Networking automatically works for me in the chroot without needing
  to follow any Arch wiki instructions to get it working, but I do not
  know if that is always the case.

Note that for me reconfiguring did not work when chrooting from a
Debian live image into Guix because GRUB claimed to have no crypto
support.  I needed to chroot from the Guix install image for
reconfiguring.  Perhaps the environment visible to GRUB is not pure.

What do you think?  Is a guix-chroot script a good idea?  I do not
know how to write one.  Do you think only chroot instructions in the
manual are a better solution?  They should explain all the above steps
though, I believe.

Regards,
Florian




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: "pelzflorian (Florian Pelz)" <pelzflorian@HIDDEN>
Subject: bug#36054: Acknowledgement ([wishlist] Simplify chrooting into
 installed system from install image)
Message-ID: <handler.36054.B.155947935424504.ack <at> debbugs.gnu.org>
References: <20190602123333.cjeqmrwz6be7uykd@HIDDEN>
X-Gnu-PR-Message: ack 36054
X-Gnu-PR-Package: guix
Reply-To: 36054 <at> debbugs.gnu.org
Date: Sun, 02 Jun 2019 12:43:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-guix@HIDDEN

If you wish to submit further information on this problem, please
send it to 36054 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
36054: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36054
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems



Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.