From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:44458) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ijOON-0000s7-B1 for guix-patches@gnu.org; Mon, 23 Dec 2019 09:09:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ijOOM-0005h3-7G for guix-patches@gnu.org; Mon, 23 Dec 2019 09:09:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:44690) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ijOOM-0005gz-4N for guix-patches@gnu.org; Mon, 23 Dec 2019 09:09:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ijOOL-0000OF-UR for guix-patches@gnu.org; Mon, 23 Dec 2019 09:09:01 -0500 Subject: [bug#38720] [PATCH] system: linux-container: Recommend guix container Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:44166) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ijONs-0000ov-8D for guix-patches@gnu.org; Mon, 23 Dec 2019 09:08:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ijONr-0005NF-4d for guix-patches@gnu.org; Mon, 23 Dec 2019 09:08:32 -0500 Received: from flashner.co.il ([178.62.234.194]:34962) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ijONq-0005Mb-U7 for guix-patches@gnu.org; Mon, 23 Dec 2019 09:08:31 -0500 Received: from localhost (unknown [141.226.13.108]) by flashner.co.il (Postfix) with ESMTPSA id A5A9540116 for ; Mon, 23 Dec 2019 14:08:29 +0000 (UTC) Date: Mon, 23 Dec 2019 16:07:58 +0200 From: Efraim Flashner Message-ID: <20191223140758.GS1115@E5400> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Yg/4YF7t1SayoUom" Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 38720@debbugs.gnu.org --Yg/4YF7t1SayoUom Content-Type: multipart/mixed; boundary="gh9b96O0vZdbsJLX" Content-Disposition: inline --gh9b96O0vZdbsJLX Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I've been using guix containers on foreign systems to bring some Guixy goodness to the unwashed sysadmins out there. When the container starts up it displays a message like "Run 'sudo nsenter -a -t 65698' to get a shell into it." Sometimes when I try to do that I'll get an error message back about the system's nsenter not knowing about the '-a' flag. I have found that using a 'guix container' command works well for me. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --gh9b96O0vZdbsJLX Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-system-linux-container-Recommend-guix-container.patch" Content-Transfer-Encoding: quoted-printable =46rom f2cd59c9eb756e243a5a01e6cd3a6a6e58a02be6 Mon Sep 17 00:00:00 2001 =46rom: Efraim Flashner Date: Mon, 23 Dec 2019 16:05:04 +0200 Subject: [PATCH] system: linux-container: Recommend guix container. * gnu/system/linux-container.scm (container-script)[script]: Recommend using 'guix container' to get a shell inside the running container. --- gnu/system/linux-container.scm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gnu/system/linux-container.scm b/gnu/system/linux-container.scm index 2ab679ff3f..7d9e02b945 100644 --- a/gnu/system/linux-container.scm +++ b/gnu/system/linux-container.scm @@ -2,6 +2,7 @@ ;;; Copyright =C2=A9 2015 David Thompson ;;; Copyright =C2=A9 2016, 2017, 2019 Ludovic Court=C3=A8s ;;; Copyright =C2=A9 2019 Arun Isaac +;;; Copyright =C2=A9 2019 Efraim Flashner ;;; ;;; This file is part of GNU Guix. ;;; @@ -195,9 +196,7 @@ that will be shared with the host system." ;; XXX: We can't quite call 'bindtextdomain' so there's actu= ally ;; no i18n. (info (G_ "system container is running as PID ~a~%") pid) - ;; XXX: Should we recommend 'guix container exec'? It's more - ;; verbose and doesn't bring much. - (info (G_ "Run 'sudo nsenter -a -t ~a' to get a shell into i= t.~%") + (info (G_ "Run 'sudo guix container exec ~a /run/current-sys= tem/profile/bin/bash --login' to get a shell into it.~%") pid) (newline (guix-warning-port))) =20 --=20 2.24.1 --gh9b96O0vZdbsJLX-- --Yg/4YF7t1SayoUom Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl4Ayj4ACgkQQarn3Mo9 g1HYGhAAs84yI/T6OoxZR0tYc7yqxgxPOORPiPde8o2AphV2IdevCm7aozWmE5tA 54E8vDFiLqFvfAqnLGT63ZdZt3DN8M9Pm+1WRduN5PfllzzFdII/7EA/tJPZxLms fr0wJ3nER8u0eycwedBTN7IeXBjtRPwqzctRvrMy4MZxi8MMku/vNCHUOIRZ7tP6 NM/woZo7HXF5ElPiGFVjdcCEonD60e4yjLLm03W6LPX/6yuAIUpCwGsM17XY3j/p hyghA1O6BZ4OOuEZMVHpbElXaWJspzf6jZgzyB+ugwHQOowkUauhorZj+P3ZT+GD hbtUb/kVRdGaWMovy4ywBGXFzMgUTok4+KU0sseuTQlpJQjwuuO1EOhFK4X4DrqF ACvbEshRo+W/2GF2S66CjM/lAnrIWRbPo4o7d1m7hzCx/Q1kNmVv1sjSqaggQ8kI MY0ejO9fzNc57qpM/B89qGuZEzf5KzlKLLlklPEgNGPtsmVx2ZiAJz1Si9HPyQk6 gWIk0Cj1VKdFQ8a6g+pfcgDe/eSGG0/iCbfo1VRULAXZnv/BAqb/Z9HmklkZMtjO +PD8kNkzQoyQTTKgH33tj9oM/5zEmzRuuWVSP5Dh0DPEtHDjx8AeAX2q8FcVwRzA L2jWbrh8Q2QMjmohpEalRcz8mIDTrrI206iO4v56VwF97BGHc9g= =/fXD -----END PGP SIGNATURE----- --Yg/4YF7t1SayoUom--