[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/15: machine/ssh: Refresh parameterization of %CURRENT-SYSTEM.
From: |
guix-commits |
Subject: |
01/15: machine/ssh: Refresh parameterization of %CURRENT-SYSTEM. |
Date: |
Mon, 19 Feb 2024 06:45:56 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 9ce548a26e59d85ad9341c0212fef38392d49ff4
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Feb 12 23:45:54 2024 +0100
machine/ssh: Refresh parameterization of %CURRENT-SYSTEM.
When using "guix deploy" on an x86_64-linux machine to deploy a system to
i686-linux, DEPLOY-MANAGED-HOST would revert %CURRENT-SYSTEM to the host
system's value by the time it evaluated UPGRADE-SHEPHERD-SERVICES. The
earlier PARAMETERIZE would no longer be effective.
* gnu/machine/ssh.scm (deploy-managed-host): Ensure that
UPGRADE-SHEPHERD-SERVICES is evaluated for the architecture of the target
machine.
Change-Id: I0816da79cd7c46a69418717fa33b2fe4e2fabae0
---
gnu/machine/ssh.scm | 31 +++++++++++++++++--------------
1 file changed, 17 insertions(+), 14 deletions(-)
diff --git a/gnu/machine/ssh.scm b/gnu/machine/ssh.scm
index b5984dc732..b47ce7c225 100644
--- a/gnu/machine/ssh.scm
+++ b/gnu/machine/ssh.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2019 Jakob L. Kreuze <zerodaysfordays@sdf.org>
;;; Copyright © 2020-2023 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2024 Ricardo <rekado@elephly.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -537,22 +538,24 @@ failed to switch systems while deploying '~a':~%~{~s ~}")
host
(inferior-exception-arguments c))))
os))
- (with-roll-back #t
- (mbegin %store-monad
- (upgrade-shepherd-services (eval/error-handling c
- (warning (G_ "\
+ (parameterize ((%current-system system)
+ (%current-target-system #f))
+ (with-roll-back #t
+ (mbegin %store-monad
+ (upgrade-shepherd-services (eval/error-handling c
+ (warning (G_ "\
an error occurred while upgrading services on '~a':~%~{~s ~}~%")
- host
-
(inferior-exception-arguments
- c)))
- os)
- (install-bootloader (eval/error-handling c
- (raise (formatted-message
- (G_ "\
+ host
+
(inferior-exception-arguments
+ c)))
+ os)
+ (install-bootloader (eval/error-handling c
+ (raise (formatted-message
+ (G_ "\
failed to install bootloader on '~a':~%~{~s ~}~%")
- host
- (inferior-exception-arguments c))))
- bootloader-configuration bootcfg))))))))
+ host
+ (inferior-exception-arguments
c))))
+ bootloader-configuration bootcfg)))))))))
;;;
- branch master updated (052ef14521 -> 90e8febd29), guix-commits, 2024/02/19
- 02/15: upstream: update-package-inputs: Sort extra inputs., guix-commits, 2024/02/19
- 03/15: gnu: r-pscbs: Update to 0.67.0., guix-commits, 2024/02/19
- 01/15: machine/ssh: Refresh parameterization of %CURRENT-SYSTEM.,
guix-commits <=
- 04/15: gnu: r-r-rsp: Update to 0.46.0., guix-commits, 2024/02/19
- 07/15: gnu: r-collapse: Update to 2.0.10., guix-commits, 2024/02/19
- 08/15: gnu: r-recipes: Update to 1.0.10., guix-commits, 2024/02/19
- 09/15: gnu: r-sm: Update to 2.2-6.0., guix-commits, 2024/02/19
- 11/15: gnu: r-magick: Update to 2.8.3., guix-commits, 2024/02/19
- 13/15: gnu: r-setrng: Update to 2024.2-1., guix-commits, 2024/02/19
- 05/15: gnu: r-callr: Update to 3.7.4., guix-commits, 2024/02/19
- 06/15: gnu: r-igraph: Update to 2.0.2., guix-commits, 2024/02/19
- 10/15: gnu: r-splus2r: Update to 1.3-5., guix-commits, 2024/02/19
- 12/15: gnu: r-performance: Update to 0.10.9., guix-commits, 2024/02/19