From patchwork Mon Dec 23 14:07:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 19428 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6BAA1178DD; Mon, 23 Dec 2019 14:09:09 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 22B2117899 for ; Mon, 23 Dec 2019 14:09:09 +0000 (GMT) Received: from localhost ([::1]:57292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ijOOS-0000sG-Hz for patchwork@mira.cbaines.net; Mon, 23 Dec 2019 09:09:08 -0500 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 X-Loop: help-debbugs@gnu.org Subject: [bug#38720] [PATCH] system: linux-container: Recommend guix container Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 23 Dec 2019 14:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38720 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 38720@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15771101141462 (code B ref -1); Mon, 23 Dec 2019 14:09:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Dec 2019 14:08:34 +0000 Received: from localhost ([127.0.0.1]:50663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ijONu-0000NV-Bg for submit@debbugs.gnu.org; Mon, 23 Dec 2019 09:08:34 -0500 Received: from lists.gnu.org ([209.51.188.17]:49011) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ijONt-0000NO-Dy for submit@debbugs.gnu.org; Mon, 23 Dec 2019 09:08:33 -0500 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-Disposition: inline X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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. 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 © 2015 David Thompson ;;; Copyright © 2016, 2017, 2019 Ludovic Courtès ;;; Copyright © 2019 Arun Isaac +;;; Copyright © 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 actually ;; 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 it.~%") + (info (G_ "Run 'sudo guix container exec ~a /run/current-system/profile/bin/bash --login' to get a shell into it.~%") pid) (newline (guix-warning-port)))