[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: installer: Fix segfault on double logical partiti
From: |
guix-commits |
Subject: |
branch master updated: installer: Fix segfault on double logical partition removal. |
Date: |
Thu, 01 Sep 2022 12:44:32 -0400 |
This is an automated email from the git hooks/post-receive script.
mothacehe pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 4989f6acff installer: Fix segfault on double logical partition removal.
4989f6acff is described below
commit 4989f6acff3b3fcfbd9dde3e3c2767bd2cd6d49e
Author: Josselin Poiret <dev@jpoiret.xyz>
AuthorDate: Wed Aug 31 23:22:55 2022 +0200
installer: Fix segfault on double logical partition removal.
* gnu/installer/parted.scm (auto-partition!): Avoid removing logical
partitions twice.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
gnu/installer/parted.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gnu/installer/parted.scm b/gnu/installer/parted.scm
index 641a1f45e8..84fdbe24fb 100644
--- a/gnu/installer/parted.scm
+++ b/gnu/installer/parted.scm
@@ -2,6 +2,7 @@
;;; Copyright © 2018, 2019 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2019, 2020, 2022 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2022 Josselin Poiret <dev@jpoiret.xyz>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -983,6 +984,11 @@ exists."
(for-each
(lambda (partition)
(and (data-partition? partition)
+ ;; Do not remove logical partitions ourselves, since
+ ;; disk-remove-partition* will remove all the logical partitions
+ ;; residing on an extended partition, which would lead to a
+ ;; double-remove and ensuing SEGFAULT.
+ (not (logical-partition? partition))
(disk-remove-partition* disk partition)))
non-boot-partitions)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: installer: Fix segfault on double logical partition removal.,
guix-commits <=