From patchwork Thu Feb 10 06:05:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alex Griffin X-Patchwork-Id: 616 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 3B4FE27BBEA; Thu, 10 Feb 2022 06:08:46 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0175F27BBE9 for ; Thu, 10 Feb 2022 06:08:46 +0000 (GMT) Received: from localhost ([::1]:43830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nI2dJ-0007EM-3C for patchwork@mira.cbaines.net; Thu, 10 Feb 2022 01:08:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nI2be-0007DD-Vi for guix-patches@gnu.org; Thu, 10 Feb 2022 01:07:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:59486) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nI2bd-0005fl-RW for guix-patches@gnu.org; Thu, 10 Feb 2022 01:07:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nI2bd-0002sK-Nw for guix-patches@gnu.org; Thu, 10 Feb 2022 01:07:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53912] [PATCH 0/5] WIP Add WSL support. Resent-From: Alex Griffin Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 10 Feb 2022 06:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53912 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53912@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.164447316810909 (code B ref -1); Thu, 10 Feb 2022 06:07:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Feb 2022 06:06:08 +0000 Received: from localhost ([127.0.0.1]:53368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nI2am-0002pt-5M for submit@debbugs.gnu.org; Thu, 10 Feb 2022 01:06:08 -0500 Received: from lists.gnu.org ([209.51.188.17]:45846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nI2ak-0002pl-AY for submit@debbugs.gnu.org; Thu, 10 Feb 2022 01:06:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nI2af-00077k-R9 for guix-patches@gnu.org; Thu, 10 Feb 2022 01:06:05 -0500 Received: from mail-4317.proton.ch ([185.70.43.17]:44925) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nI2ac-0005Rj-65 for guix-patches@gnu.org; Thu, 10 Feb 2022 01:06:01 -0500 Date: Thu, 10 Feb 2022 06:05:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ajgrf.com; s=protonmail; t=1644473153; bh=NVBQYsPc3YRVH6Rv8k3copzW8GrTYIdSXJ4/lWVj5Xo=; h=Date:To:From:Reply-To:Subject:Message-ID:From:To:Cc:Date:Subject: Reply-To:Feedback-ID:Message-ID; b=c6xy8hXEeLjlCeBC+gLmJ0tOnYB13/TXenyBQYfU1oFii4gIbmbBmvUVWX4l58uK3 CuTdjNnyAXyuGCEfZBeRzzZuudKGmxF/+Su1Y9p8oY3ea6lM6zVDrRAIXrssqn208J jXnyagwR+G9hHue3hPJ8TGCsU46IODb3Cyp6j9OglQwLL+Sk41QNQWYYAXJAUw2dsL 56LHrhtsrvRvbQzoCYOMGD4uTqbzTm98WLwe22s7muwlei26dEzehor6Ma4PT5Iw1B iRFCwj9FGzpM7IGcbPlBlxuO1QuTPx3LLVN4N7OsmmlwD216alPCODFEdlLAo93lVl cyaZPiLtn2c3g== Message-ID: <875ypndznv.fsf@ajgrf.com> MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.43.17; envelope-from=a@ajgrf.com; helo=mail-4317.proton.ch 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_NONE=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: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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" Reply-to: Alex Griffin X-ACL-Warn: , Alex Griffin via Guix-patches X-Patchwork-Original-From: Alex Griffin via Guix-patches via From: Alex Griffin X-getmail-retrieved-from-mailbox: Patches These patches are a work-in-progress, adding support for running Guix System under [WSL]. Windows Subsystem for Linux (WSL) lets developers run a GNU/Linux environment – including most command-line tools, utilities, and applications – directly on Windows, unmodified, without the overhead of a traditional virtual machine or dual-boot setup. Things mostly just work already. To try it out, first generate an os tarball: ┌──── │ guix system image gnu/system/images/wsl.scm └──── Then copy the result to your Windows system and run: ┌──── │ wsl --import guix ./guix/ image.tar.gz └──── You can now run Guix System under WSL: ┌──── │ wsl -d guix └──── The approach I took is copied from the [NixOS-WSL] project. Since WSL doesn’t run the guest distro’s init system, as a work-around I set the root user’s shell to a script that boots the system and then starts a user login shell. Thanks, – Alex Griffin [WSL] [NixOS-WSL]