diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2020-02-19 12:08:40 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2020-02-22 00:45:42 +0100 |
| commit | 5c04b00cf463a543b8ffc9eb55991f6b4cc145dd (patch) | |
| tree | d8bc8b028c606a76f3c78a2872dfdd859d5a77ec /gnu/installer.scm | |
| parent | 2cf65e1d543407bc7db43e7c7d39a215907efebc (diff) | |
installer: Log important bits to syslog.
* gnu/installer.scm (installer-program): Log crashes with 'syslog'.
* gnu/installer/parted.scm (luks-format-and-open, luks-close)
(mount-user-partitions, umount-user-partitions): Add 'syslog' calls.
* gnu/installer/steps.scm (run-installer-steps): Log the running step
with 'syslog'.
* gnu/installer/utils.scm (run-shell-command): Add calls to 'syslog'.
Diffstat (limited to 'gnu/installer.scm')
| -rw-r--r-- | gnu/installer.scm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/installer.scm b/gnu/installer.scm index 3f4ae4bf537..edef3fde622 100644 --- a/gnu/installer.scm +++ b/gnu/installer.scm | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2018, 2020 Mathieu Othacehe <m.othacehe@gmail.com> | 2 | ;;; Copyright © 2018, 2020 Mathieu Othacehe <m.othacehe@gmail.com> |
| 3 | ;;; Copyright © 2019 Ludovic Courtès <ludo@gnu.org> | 3 | ;;; Copyright © 2019, 2020 Ludovic Courtès <ludo@gnu.org> |
| 4 | ;;; Copyright © 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> | 4 | ;;; Copyright © 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> |
| 5 | ;;; | 5 | ;;; |
| 6 | ;;; This file is part of GNU Guix. | 6 | ;;; This file is part of GNU Guix. |
| @@ -26,6 +26,7 @@ | |||
| 26 | #:use-module (guix utils) | 26 | #:use-module (guix utils) |
| 27 | #:use-module (guix ui) | 27 | #:use-module (guix ui) |
| 28 | #:use-module ((guix self) #:select (make-config.scm)) | 28 | #:use-module ((guix self) #:select (make-config.scm)) |
| 29 | #:use-module (gnu installer utils) | ||
| 29 | #:use-module (gnu packages admin) | 30 | #:use-module (gnu packages admin) |
| 30 | #:use-module (gnu packages base) | 31 | #:use-module (gnu packages base) |
| 31 | #:use-module (gnu packages bash) | 32 | #:use-module (gnu packages bash) |
| @@ -395,6 +396,8 @@ selected keymap." | |||
| 395 | #f))) | 396 | #f))) |
| 396 | (const #f) | 397 | (const #f) |
| 397 | (lambda (key . args) | 398 | (lambda (key . args) |
| 399 | (syslog "crashing due to uncaught exception: ~s ~s~%" | ||
| 400 | key args) | ||
| 398 | (let ((error-file "/tmp/last-installer-error")) | 401 | (let ((error-file "/tmp/last-installer-error")) |
| 399 | (call-with-output-file error-file | 402 | (call-with-output-file error-file |
| 400 | (lambda (port) | 403 | (lambda (port) |
