From 06b6263c24894e9c12d7296a3bf580e100ef7822 Mon Sep 17 00:00:00 2001 From: dalto Date: Tue, 9 Nov 2021 07:42:39 -0600 Subject: [PATCH] [zfs] Export zpool so it can later be mounted at the correct location --- src/modules/zfs/ZfsJob.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/modules/zfs/ZfsJob.cpp b/src/modules/zfs/ZfsJob.cpp index af57fa5cc..b04dfd473 100644 --- a/src/modules/zfs/ZfsJob.cpp +++ b/src/modules/zfs/ZfsJob.cpp @@ -183,6 +183,13 @@ ZfsJob::exec() { gs->insert( "zfs", datasetList ); } + + // Export the zpool so it can be reimported at the correct local later + auto r = system->runCommand( { "zpool", "export", m_poolName }, std::chrono::seconds( 10 ) ); + if ( r.getExitCode() != 0 ) + { + cWarning() << "Failed to export pool" << m_poolName; + } } return Calamares::JobResult::ok();