Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
[zfs] export pool after finishing the installation process
Browse files Browse the repository at this point in the history
  • Loading branch information
karasu committed Dec 6, 2017
1 parent 3a7ae57 commit 5b76853
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
7 changes: 7 additions & 0 deletions src/installation/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 5b76853

Please sign in to comment.