From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id MGUCDm/e6GXPdgAAqHPOHw:P1 (envelope-from ) for ; Wed, 06 Mar 2024 22:21:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id MGUCDm/e6GXPdgAAqHPOHw (envelope-from ) for ; Wed, 06 Mar 2024 22:21:51 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tuziwo.info header.s=protonmail header.b=FbEhmrob; dmarc=pass (policy=none) header.from=tuziwo.info; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709760111; a=rsa-sha256; cv=none; b=iIUC4mA5vNy67hcheFihMpiADwraktOjy4wL3ggtznRmLuh/asiJEwsEgHtpJduzxzSpUQ 2KC56s5t+DOdlE5ZVkngNhsMG6fVi5CoMLPmZjqjhc+h+FLT9krAI5hNqo2XD4qGXbvKq6 ACsFhdxncaMHBaukFyfSLkFXBpoK/4kvczbk3ilKO/fAIzl4fqVbSQ0Bdqo6fWGsr0Km1I 2y+TWW9+o4lrAV33r16dl/jP+7eZX1IZNt8yczIwqREgEIeGszJ+kxa9DSWWHo50gjlQjE LpBFcjh4KO8B2IxfE8Bk3eopsCEmLmFkpRs2ML6ExdpcGp5D2N4na1SxdBawAA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tuziwo.info header.s=protonmail header.b=FbEhmrob; dmarc=pass (policy=none) header.from=tuziwo.info; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709760111; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=mT09t7PNdSP9QmHyLLvFmrLZUp0C+GcdISBUTL75keY=; b=Lr9gSAktLNMaqtZvp4I7vBVuJ+Ntfky0x3RS1roM1aZr8yax9qvAuXEGxryqKW24q6Yius 0ZAc/4vsjuMIhO/RqDKDHwrYxQMsSUgSBzT1d/gRVvXCSSqcsJyq49UKhMk8XdPDxcw8tC NQFSU/msncOsvvZH47ZStkYPfSp9kh1Qw2ZnFn2A5L/XFAvbPENun3HJN6iBSgC4mkLf6O dX3J4ISnePvlQdrQXqODM/DQYftSGv3tOXt5G3h877xRdiPBnyv9ewySbZ/OIK4HpAFVAR ok1+cGyXPsk7rCeUgK99sCOH+qAK9aoW2jTNXrgsD64HiUxK2TM7LO6Ke+hOzg== 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 BA5176D37A for ; Wed, 6 Mar 2024 22:21:50 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhyhb-0003hL-Ja; Wed, 06 Mar 2024 16:21:27 -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 1rhyhZ-0003h6-N6 for help-guix@gnu.org; Wed, 06 Mar 2024 16:21:25 -0500 Received: from mail-4317.proton.ch ([185.70.43.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rhyhV-0002Bj-47 for help-guix@gnu.org; Wed, 06 Mar 2024 16:21:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuziwo.info; s=protonmail; t=1709760071; x=1710019271; bh=mT09t7PNdSP9QmHyLLvFmrLZUp0C+GcdISBUTL75keY=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=FbEhmrobDz3/sMcmxK7Ml1031/aUPWGXEMtvp/c0KeC+Z7eb7pPCHGtrlomjkRFiS 5DSkVrjzZbkWtguMexRkrqOHcDUkD9zvbPrbA2OFjDadODm+xhriF/iEm3Zi/b0mqc P3blp3VP0ZDI8K+/3qASFh1m8R6vMn1DMfww+RV5v3e1RSI3hE4BUdnIKk0YYkdRng Tp3iEbtuH7/E/39X6DLCvyWBx8B6VDSgDou3n0VGzEB8XTrkeX9lIU2+t8M7OBBgbk t3Wb1XUSkgphnf/lzN6nA3/WVTXAYJ5h4IcEfVDapeJfI+s9R4Gl64rca4rgi8APwW bJwmZV095Z1wQ== Date: Wed, 06 Mar 2024 21:20:43 +0000 To: Kristofer Hjelmtorp From: woshilapin Cc: "help-guix@gnu.org" Subject: Re: Problem with running system reconfigure on Guix in WSL2 Message-ID: In-Reply-To: <800540336.302039.1709026670779@office.mailbox.org> References: <800540336.302039.1709026670779@office.mailbox.org> Feedback-ID: 30348956:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.17; envelope-from=woshilapin@tuziwo.info; 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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -5.98 X-Spam-Score: -5.98 X-Migadu-Queue-Id: BA5176D37A X-TUID: 1KpjiwFh8XxP Hi Kristofer, I actually reached the same error. I have absolutely no idea what's going o= n, but I found a way to move on. Basically, I defined a `dummy-bootloader`. Because I don't know what I'm do= ing, I took inspiration of some other well-known blog article talking about= running guix on WSL, notably https://wiki.systemcrafters.net/guix/wsl/. ``` (define dummy-bootloader (bootloader (name 'dummy-bootloader) (package dummy-package) (configuration-file "/dev/null") (configuration-file-generator (lambda* rest (computed-file "dummy-bootloader" #~(mkdir #$output)))) (installer #~(const #t)))) ``` Then it can be used as follows. ``` (define wsl2-os (operating-system (...) (bootloader (bootloader-configuration (bootloader dummy-bootloader))) ``` This seems to work for running `guix system reconfigure wsl2.scm` on my mac= hine. If someone can explain what this new definition changes? And maybe ma= ke some hypothesis about why that would work (and the original wouldn't)? Best regards. -- woshilapin > Hello >=20 > I recently wanted to try running Guix on WSL2. I followed the path of htt= ps://othacehe.org/wsl-images-for-guix-system.html and created a guix image = tarball from wsl.scm. >=20 > Everything went fine while importting the tarball into WSL2 and running i= t. The problem I have is when I want to update my system by running: > "sudo guix system reconfigure ~/.config/guix/system.scm" >=20 > I get an exceptions that complaines about the dummy-bootloader package. >=20 > Here is the backtrace: > building /gnu/store/zb4ca5xb865a3jlwbis857kzy1sx5kf7-system.drv... > /gnu/store/w7xbzicz3hfi8z6lkv4yymndwy77a82f-system > Backtrace: > 19 (primitive-load "/home/guest/.config/guix/current/bin/g=E2=80=A6") > In guix/ui.scm: > 2324:7 18 (run-guix . _) > 2287:10 17 (run-guix-command _ . _) > In ice-9/boot-9.scm: > 1752:10 16 (with-exception-handler _ _ #:unwind? _ # ) > In guix/status.scm: > 859:3 15 () > 839:4 14 (call-with-status-report _ ) > In guix/scripts/system.scm: > 1305:4 13 () > In ice-9/boot-9.scm: > 1752:10 12 (with-exception-handler _ _ #:unwind? _ # _) > In guix/store.scm: > 661:37 11 (thunk) > 1300:8 10 (call-with-build-handler _ _) > 1300:8 9 (call-with-build-handler _ _) > 1300:8 8 (call-with-build-handler _ _) > 1300:8 7 (call-with-build-handler # =E2=80=A6) >=20 > 2180:25 6 (run-with-store # = =E2=80=A6) >=20 > In guix/scripts/system.scm: > 871:10 5 (_ _) > In srfi/srfi-1.scm: > 634:9 4 (for-each # =E2=80=A6) >=20 > In unknown file: > 3 (_ # = =E2=80=A6) >=20 > In guix/derivations.scm: > 697:28 2 (derivation->output-path "/gnu/store/dqasqlz2qivgbbl2b=E2=80= =A6" =E2=80=A6) >=20 > In ice-9/boot-9.scm: > 1685:16 1 (raise-exception _ #:continuable? _) > 1685:16 0 (raise-exception _ #:continuable? _) > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > In procedure struct-vtable: Wrong type argument in position 1 (expecting = struct): "/gnu/store/dqasqlz2qivgbbl2bgkdw73mayb1l478-dummy-bootloader" >=20 > And here is my "config.scm": > (use-modules (gnu) > (gnu system images wsl2) > (gnu packages)) > (use-package-modules screen emacs certs version-control bash) >=20 > (define wsl2-os > (operating-system > (inherit wsl-os) > (host-name "guix") > (file-systems (list (file-system > (device "/dev/sdc") > (mount-point "/") > (type "ext4") > (mount? #t)))) > (users (cons* (user-account > (name "dev") > (group "users") > (supplementary-groups '("wheel" "audio" "video" "input" "tty")) ; allow u= se of sudo > (password "password") > (comment "Developer")) > (user-account > (inherit %root-account) > (shell (wsl-boot-program "dev"))) > %base-user-accounts)) > (packages > (append > (map specification->package >=20 > (list "git" > "screen" > "nss-certs" > "emacs")) > %base-packages)))) > wsl2-os >=20 > Any ideas of what the issue could be? >=20 > Best Regards > Kristofer