From 4d28f305f4ccd21415e99aa46902704f6ad83a7d Mon Sep 17 00:00:00 2001 From: Dan Bungert Date: Mon, 17 Jul 2023 17:29:48 -0600 Subject: [PATCH] filesystem: zpool type improvements --- subiquity/models/filesystem.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/subiquity/models/filesystem.py b/subiquity/models/filesystem.py index 23521a1a..cf468167 100644 --- a/subiquity/models/filesystem.py +++ b/subiquity/models/filesystem.py @@ -1072,6 +1072,20 @@ class ZPool: # default dataset options for the zfses in the pool fs_properties: Optional[dict] = None + component_name = "vdev" + + @property + def fstype(self): + return 'zfs' + + @property + def name(self): + return self.pool + + @property + def mount(self): + return self.mountpoint + async def pre_shutdown(self, command_runner): await command_runner.run(['zpool', 'export', self.pool])