[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/05: system: Add 'location' field to <operating-system>.
From: |
guix-commits |
Subject: |
04/05: system: Add 'location' field to <operating-system>. |
Date: |
Tue, 14 Jul 2020 19:54:10 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 9e12da319b779d1c7f3d46ad2fd4025d4ffc228f
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Jul 15 01:31:23 2020 +0200
system: Add 'location' field to <operating-system>.
This allows error messages to include source location info.
* gnu/system.scm (<operating-system>)[location]: New field.
---
gnu/system.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gnu/system.scm b/gnu/system.scm
index f915057..e7f85e4 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -118,6 +118,7 @@
operating-system-sudoers-file
operating-system-swap-devices
operating-system-kernel-loadable-modules
+ operating-system-location
operating-system-derivation
operating-system-profile
@@ -255,7 +256,12 @@
(default %setuid-programs)) ; list of string-valued gexps
(sudoers-file operating-system-sudoers-file ; file-like
- (default %sudoers-specification)))
+ (default %sudoers-specification))
+
+ (location operating-system-location ; <location>
+ (default (and=> (current-source-location)
+ source-properties->location))
+ (innate)))
(define (operating-system-kernel-arguments os root-device)
"Return all the kernel arguments, including the ones not specified