From mboxrd@z Thu Jan 1 00:00:00 1970 From: Divan Santana Subject: Noob issues with maintaining a guix laptop system Date: Mon, 03 Jun 2019 16:44:20 +0200 Message-ID: <87r28ak9tn.fsf@santanas.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:36688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXoJG-0004vX-SO for help-guix@gnu.org; Mon, 03 Jun 2019 10:51:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hXoJF-0004dZ-H8 for help-guix@gnu.org; Mon, 03 Jun 2019 10:51:38 -0400 Received: from [156.0.193.126] (port=49735 helo=mail.santanas.co.za) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hXoJE-0004UB-D1 for help-guix@gnu.org; Mon, 03 Jun 2019 10:51:37 -0400 Received: from authenticated-user (mail.santanas.co.za [156.0.193.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.santanas.co.za (Postfix) with ESMTPSA id 1D95B600B0 for ; Mon, 3 Jun 2019 16:44:20 +0200 (SAST) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Help guix Hi All, Issues of a noob with no lisp programming skills has in maintaining a guix laptop system. * how to do a system reconfigure on an older guix generation? Sometimes I do a guix pull and attempt a reconfigure. Due to various reasons, the reconfigure may fail. I now want to do a reconfigure, but on the older guix generation profile. How do I go about doing that? I've tried rolling back my guix profile, but running =3Dguix pull --list-generations=3D fails. #+begin_example ~ =E1=90=85 guix pull --list-generations Generation 1 Oct 12 2018 20:44:32 guix aa227b3 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: aa227b3be3d7728331a08dbd139c47c9b271dc23 guix-chromium 16130df repository URL: https://gitlab.com/mbakke/guix-chromium.git branch: master commit: 16130df2cc9a3424caa8230323b7d49c445f0813 Generation 2 Oct 13 2018 15:35:07 guix d781469 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: d7814696b884a7c5e4a58f539ece53f4998689a3 guix-chromium 16130df repository URL: https://gitlab.com/mbakke/guix-chromium.git branch: master commit: 16130df2cc9a3424caa8230323b7d49c445f0813 Backtrace: 10 (primitive-load "/home/ds/.config/guix/current/bin/guix") In guix/ui.scm: 1747:12 9 (run-guix-command _ . _) In ice-9/boot-9.scm: 829:9 8 (catch _ _ # =E2=80=A6) 829:9 7 (catch _ _ # =E2=80=A6) 829:9 6 (catch _ _ # =E2=80=A6) 829:9 5 (catch system-error # =E2=80=A6) In guix/scripts/pull.scm: 479:15 4 (_) 462:4 3 (display-profile-content-diff "/var/guix/profiles/per-=E2= =80=A6" =E2=80=A6) In guix/memoization.scm: 100:0 2 (_ # "/var/guix/profiles/per-=E2= =80=A6" =E2=80=A6) In guix/scripts/pull.scm: 363:21 1 (_) In guix/inferior.scm: 151:7 0 (port->inferior _ _) guix/inferior.scm:151:7: In procedure port->inferior: no binding `console-setup' in module (gnu packages xorg) #+end_example Any ideas? * Adding a swap device from a file on disk Something like this: ~ sudo file /mnt/swapfile Password: /mnt/swapfile: Linux/i386 swap file (new style) with SWSUSP1 image (operating-system ... (swap-devices '("/mnt/swapfile")) ... ) But fails with: #+begin_example guix system: error: exception caught while executing 'start' on service '= swap-/mnt/swapfile': In procedure swapon: "/mnt/swapfile": Invalid argument #+end_example