From c212cef7617d28357d09f6c0f988f1a33a995d68 Mon Sep 17 00:00:00 2001 From: Paul Le Guen de Kerneizon Date: Thu, 11 Dec 2025 15:24:24 +0100 Subject: [PATCH 1/3] modules/partition: fix segfault when no partitions When no partitions are installed on the selected disk, a segfault is happening as Calamares tries to perform partitions stuff on non-existent partitions. To fix that, when there are no partitions on the selected disk, don't show any partitions preview and only a text box message. Signed-off-by: Paul Le Guen de Kerneizon --- src/modules/partition/gui/ChoicePage.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 268e75d..d6838be 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -1010,6 +1010,16 @@ ChoicePage::updateActionChoicePreview( InstallChoice choice ) targetDevice = selectedDevice(); // Refresh the targetDevice reference } + PartitionTable* pt = targetDevice ? targetDevice->partitionTable() : nullptr; + if ( !pt ) + { + cDebug() << "No partition table found on device"; + m_messageLabel->setText( tr( "This storage device has no partition table. " + "Partitions preview not available." ) ); + m_messageLabel->show(); + break; + } + // Remove directly the partition table without creating jobs (preview only) cDebug() << "Removing all existing partitions from preview (no jobs created)"; QList< Partition* > partitionsToDelete; From 4f0657ebfa23ee6da2daea7cbbf3c954bd1a4a6e Mon Sep 17 00:00:00 2001 From: Paul Le Guen de Kerneizon Date: Thu, 11 Dec 2025 15:29:12 +0100 Subject: [PATCH 2/3] README: add 1.2.1 release note Signed-off-by: Paul Le Guen de Kerneizon --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 3a6f5c3..91030ea 100644 --- a/README.md +++ b/README.md @@ -166,6 +166,9 @@ For more information about the upstream Calamares project, visit https://calamares.euroquis.nl/ # Release notes +## Version 1.2.1 +* Fix segfault when no partitions are on the selected disk + ## Version 1.2.0 * Fix slideshow image display * Add bmap support for SEAPATH Debian images From caa1726d6dd09dbcd99292445c51254501672c1e Mon Sep 17 00:00:00 2001 From: Paul Le Guen de Kerneizon Date: Thu, 11 Dec 2025 15:29:34 +0100 Subject: [PATCH 3/3] seapath-installer: update version number Signed-off-by: Paul Le Guen de Kerneizon --- build.sh | 2 +- debian/DEBIAN/control | 2 +- src/branding/seapath/branding.desc | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build.sh b/build.sh index 6a054d0..c85d717 100755 --- a/build.sh +++ b/build.sh @@ -3,7 +3,7 @@ export DESTDIR=/tmp/sysroot-seapath-installer export BUILDDIR=./build export CMAKE_ARGS="-DWITH_QT6=OFF" -export VERSION="1.2.0" +export VERSION="1.2.1" ./ci/build.sh mkdir -p seapath-installer_${VERSION}_all/etc/calamares mkdir -p seapath-installer_${VERSION}_all/usr/share/calamares/modules diff --git a/debian/DEBIAN/control b/debian/DEBIAN/control index 6ddefe9..450217f 100644 --- a/debian/DEBIAN/control +++ b/debian/DEBIAN/control @@ -1,5 +1,5 @@ Package: seapath-installer -Version: 1.2.0 +Version: 1.2.1 Architecture: all Essential: no Priority: optional diff --git a/src/branding/seapath/branding.desc b/src/branding/seapath/branding.desc index 3ac1783..97169e7 100644 --- a/src/branding/seapath/branding.desc +++ b/src/branding/seapath/branding.desc @@ -123,15 +123,15 @@ navigation: widget strings: productName: "LFEnergy SEAPATH" shortProductName: "SEAPATH" - version: 1.2.0 - shortVersion: 1.2.0 - versionedName: LFEnergy SEAPATH 1.2.0 - shortVersionedName: SEAPATH 1.2.0 + version: 1.2.1 + shortVersion: 1.2.1 + versionedName: LFEnergy SEAPATH 1.2.1 + shortVersionedName: SEAPATH 1.2.1 bootloaderEntryName: SEAPATH productUrl: https://lfenergy.org/projects/seapath/ supportUrl: https://lf-energy.atlassian.net/wiki/spaces/SEAP/overview knownIssuesUrl: - releaseNotesUrl: https://lf-energy.atlassian.net/wiki/spaces/SEAP/pages/248250373/1.2.0 + releaseNotesUrl: https://lf-energy.atlassian.net/wiki/spaces/SEAP/pages/248250373/1.2.1 donateUrl: # These images are loaded from the branding module directory.