zfs: Cannot pass additional arguments to zpool create

Bug #1823848 reported by Jean-Baptiste Lallement
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curtin (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

Current definition of zpool_create doesn't allow to pass additional arguments to zpool create:

[curtin/block/zfs.py]
def zpool_create(poolname, vdevs, mountpoint=None, altroot=None,
                 pool_properties=None, zfs_properties=None):

then further in the code, "options" is a list of hardcoded options. There are cases where we want to pass additional options. For exemple with GRUB on zfs we want to disable all the features with '-d' then enabling specific features supported by GRUB.

The number of options is rather limited so it could be done generically by allowing to pass any option or just add a property to the yaml schema to disable all the features.

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: curtin (not installed)
ProcVersionSignature: Ubuntu 5.0.0-8.9-generic 5.0.1
Uname: Linux 5.0.0-8-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.10-0ubuntu26
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Apr 9 08:34:30 2019
InstallationDate: Installed on 2014-07-15 (1728 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Alpha amd64 (20140520)
SourcePackage: curtin
UpgradeStatus: Upgraded to disco on 2018-03-24 (380 days ago)

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
summary: - zfs: Cannot pass addition arguments to zpool create
+ zfs: Cannot pass additional arguments to zpool create
Changed in curtin (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Changed in curtin (Ubuntu):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.