aboutsummaryrefslogtreecommitdiff
path: root/gnu/build
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2018-12-18 14:51:56 +0100
committerLudovic Courtès <ludo@gnu.org>2018-12-18 16:04:26 +0100
commit6ea6e1476ff4a18d4b4b864c3065d18ed99c69af (patch)
tree00cb5c5767ae74f8f6c5f22f4ba949206db81157 /gnu/build
parent65c8a043709e9e13f814211bba98c57eb00d9620 (diff)
downloadguix-6ea6e1476ff4a18d4b4b864c3065d18ed99c69af.tar.gz
guix-6ea6e1476ff4a18d4b4b864c3065d18ed99c69af.zip
file-systems: Spawn a REPL only when interaction is possible.
Fixes <https://bugs.gnu.org/23697>. Reported by Jan Nieuwenhuizen <janneke@gnu.org>. * gnu/build/file-systems.scm (check-file-system): Call 'start-repl' only if current-input-port passes 'isatty?'. * gnu/services/shepherd.scm (shepherd-configuration-file): After 'for-each' expression, call 'redirect-port'. * gnu/tests/base.scm (run-basic-test)["stdin is /dev/null"]: New test.
Diffstat (limited to 'gnu/build')
-rw-r--r--gnu/build/file-systems.scm9
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/build/file-systems.scm b/gnu/build/file-systems.scm
index 3f97afeedd..efd744acc1 100644
--- a/gnu/build/file-systems.scm
+++ b/gnu/build/file-systems.scm
@@ -535,10 +535,13 @@ were found."
(sleep 3)
(reboot))
('fatal-error
- (format (current-error-port)
- "File system check on ~a failed; spawning Bourne-like REPL~%"
+ (format (current-error-port) "File system check on ~a failed~%"
device)
- (start-repl %bournish-language)))
+
+ ;; Spawn a REPL only if someone would be able to interact with it.
+ (when (isatty? (current-input-port))
+ (format (current-error-port) "Spawning Bourne-like REPL.~%")
+ (start-repl %bournish-language))))
(format (current-error-port)
"No file system check procedure for ~a; skipping~%"
device)))
of ‘xclip’ and ‘wl-copy’....Ludovic Courtès 2023-11-04gnu: password-store: Add missing ‘tail’ input....Clément Lassieur 2023-09-28gnu: keepassxc: Switch to qt-build-system....Timotej Lazar 2023-09-19gnu: keepassxc: Update to 2.7.6....Efraim Flashner 2023-08-31gnu: xkcdpass: Update to 1.19.4....宋文武 2023-08-02gnu: john-the-ripper-jumbo: Fix compilation with GCC 11+....Jakob Kirsch 2023-07-22gnu: tessen: Update to 2.2.1....Hilton Chain 2023-07-16gnu: yapet: Fix documentation directory....Tobias Geerinckx-Rice 2023-07-16gnu: yapet: Update to 2.6....Tobias Geerinckx-Rice 2023-07-16gnu: passwdqc: Update to 2.0.3....Tobias Geerinckx-Rice 2023-07-16gnu: otpclient: Update to 3.1.9....Tobias Geerinckx-Rice 2023-07-16gnu: hydra: Update to 9.5....Tobias Geerinckx-Rice 2023-07-11gnu: keepassxc: Fix broken home-page url....jgart 2023-07-05gnu: Add passwdqc....flabbergasted 2023-07-01gnu: password-store: Fix program name in usage and tmpdir....Tobias Kortkamp 2023-06-14gnu: browserpass-native: Use new package style....Timotej Lazar 2023-06-14gnu: browserpass-native: Update to 3.1.0....Timotej Lazar 2023-06-11gnu: Add otpclient....Liliana Marie Prikler 2023-06-04gnu: keepassxc: Update to 2.7.5....Efraim Flashner