From 5b768531af4040a67a3a838c754682b124a1a5a4 Mon Sep 17 00:00:00 2001 From: karasu Date: Wed, 6 Dec 2017 12:36:49 +0100 Subject: [PATCH] [zfs] export pool after finishing the installation process --- src/info.py | 2 +- src/installation/install.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/info.py b/src/info.py index 54552f71f..1ef6bc83c 100755 --- a/src/info.py +++ b/src/info.py @@ -29,7 +29,7 @@ """ Set some Cnchi global constants """ -CNCHI_VERSION = "0.14.409" +CNCHI_VERSION = "0.14.410" CNCHI_WEBSITE = "http://www.antergos.com" CNCHI_RELEASE_STAGE = "production" diff --git a/src/installation/install.py b/src/installation/install.py index e78ec1d87..13a2bd986 100644 --- a/src/installation/install.py +++ b/src/installation/install.py @@ -1539,3 +1539,10 @@ def configure_system(self): bashrc.write('if [ -e ~/.bashrc.aliases ] ; then\n') bashrc.write(' source ~/.bashrc.aliases\n') bashrc.write('fi\n') + + # This must be done at the end of the installation when using zfs + if self.method == "zfs": + logging.debug("Installation done, exporting ZFS pool") + pool_name = self.settings.get("zfs_pool_name") + cmd = ["zpool", "export", "-f", pool_name] + call(cmd)