[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
27/197: installer: Deal with partition tables which are (partially) corr
From: |
Danny Milosavljevic |
Subject: |
27/197: installer: Deal with partition tables which are (partially) corrupt. |
Date: |
Mon, 3 Jul 2017 20:36:54 -0400 (EDT) |
dannym pushed a commit to branch wip-installer-2
in repository guix.
commit 42bc9503deb95cd852069a3335990c463b71809a
Author: John Darrington <address@hidden>
Date: Sat Dec 24 15:03:06 2016 +0100
installer: Deal with partition tables which are (partially) corrupt.
* gnu/system/installer/partition-reader.scm (read-partition-info): Change
read-line to read-delimited.
---
gnu/system/installer/partition-reader.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gnu/system/installer/partition-reader.scm
b/gnu/system/installer/partition-reader.scm
index c0db6a7..d55f798 100644
--- a/gnu/system/installer/partition-reader.scm
+++ b/gnu/system/installer/partition-reader.scm
@@ -144,7 +144,9 @@ number of Megabytes"
(define (read-partition-info)
(define (read-partition-info' port l)
- (let ((line (read-line port)))
+ ;; Under certain circumstances, it seems that parted writes
+ ;; ^M characters to stdout! Plain read-line cannot therefore work.
+ (let ((line (read-delimited "\n\r" port)))
(if (eof-object? line)
l
(if (or (zero? (string-length line))
- 31/197: installer: Make minumum-store-size variable global., (continued)
- 31/197: installer: Make minumum-store-size variable global., Danny Milosavljevic, 2017/07/03
- 33/197: installer: Improve dependencies on the final task., Danny Milosavljevic, 2017/07/03
- 17/197: installer: Add completion predicate for disk task., Danny Milosavljevic, 2017/07/03
- 21/197: installer: Fix incorrect host in ping task., Danny Milosavljevic, 2017/07/03
- 20/197: installer: Return slurped lines in their correct order., Danny Milosavljevic, 2017/07/03
- 25/197: installer: Connect ethernet interfaces on selection., Danny Milosavljevic, 2017/07/03
- 03/197: installer: Remove obsolete procedures/variables, Danny Milosavljevic, 2017/07/03
- 10/197: installer: Perform a task's dependencies prior to the task itself., Danny Milosavljevic, 2017/07/03
- 22/197: installer: Make "interfaces" return an alist., Danny Milosavljevic, 2017/07/03
- 26/197: installer: Let the kernel know about (possibly) changed partitions., Danny Milosavljevic, 2017/07/03
- 27/197: installer: Deal with partition tables which are (partially) corrupt.,
Danny Milosavljevic <=
- 28/197: installer: Add a variable to represent the minimum recommended store size., Danny Milosavljevic, 2017/07/03
- 32/197: installer: Remove ad-hoc completed predicate and use standard one., Danny Milosavljevic, 2017/07/03
- 34/197: installer: Replace some instances of "car"., Danny Milosavljevic, 2017/07/03
- 40/197: installer: Turn off kernel ring messages to console., Danny Milosavljevic, 2017/07/03
- 37/197: install: Define new procedure pipe-cmd and use it to implement window-pipe., Danny Milosavljevic, 2017/07/03
- 41/197: installer: Enable scrolling in the installation window., Danny Milosavljevic, 2017/07/03
- 38/197: installer: Correct bugs generating the configuration., Danny Milosavljevic, 2017/07/03
- 45/197: installer: Fix bug where window-pipe did not return the proper exit status., Danny Milosavljevic, 2017/07/03
- 43/197: installer: Rename module "new" to "guixsd-installer"., Danny Milosavljevic, 2017/07/03
- 42/197: installer: Wrap installer in (catch #t ...), Danny Milosavljevic, 2017/07/03