quattor / template-library-standard

Apache License 2.0
2 stars 20 forks source link

Passing mount and mkfs options to filesystem/config #58

Open StephaneGerardVUB opened 9 years ago

StephaneGerardVUB commented 9 years ago

We use the filesystem/config from the standard library. We would like to create a filesystem using this code in a FILESYSTEM_LAYOUT_CONFIG_SITE template :

variable DISK_VOLUME_PARAMS = {
    t = dict();
    t['osd'] = dict(
        'size',         -1,
        'mountpoint',   '/var/lib/ceph/osd/vdb',
        'fstype',       CEPH_FS,
        'type',         'partition',
        'device',       'vdb1',
        'preserve',     true,
        'mkfsopts',     CEPH_DISK_OPTIONS[CEPH_FS]['mkfsopts'],
        'mountopts',    CEPH_DISK_OPTIONS[CEPH_FS]['mountopts'],
    );
    t;
};

The first problem is that the attributes 'mkfsopts' and 'mountopts' are not taken into account. I've tried to workaround this problem by adding the necessary code in filesystem/config, but then I fall on a second problem : the mount options are not taken into account in the generation of the /etc/fstab.

StephaneGerardVUB commented 9 years ago

The second problem (mount options not used by kickstart to generate fstab) has been solved by including the component fstab.