=== modified file 'zsh-functions/confz_fs_init' --- zsh-functions/confz_fs_init 2017-12-13 17:56:18 +0000 +++ zsh-functions/confz_fs_init 2017-12-07 19:21:54 +0000 @@ -549,21 +549,10 @@ die "$0: not a block device: ${(qqq)vars[device]}" do_command=( - mkfs -t ${vars[filesystem]} + mkfs -t ${vars[filesystem]} -L ${vars[label]} ${vars[device]} ) - case $vars[filesystem] in - (xfs|btrfs|ext[234]) - do_command+=( -L ${vars[label]} );; - (reiserfs) - do_command+=( -l ${vars[label]} );; - (*) - if [[ -n $vars[label] ]]; then - die "$0: I don't know how to set label on ${(qqq)vars[filesystem]}" - fi - ;; - esac + [[ -n $vars[mkfs_opts] ]] && do_command+=( "${(Q@)${(z)vars[mkfs_opts]}}" ) - do_command+=( ${vars[device]} ) local tries blk_out DEVNAME LABEL UUID TYPE SEC_TYPE PARTLABEL PARTUUID