=== modified file 'zsh-functions/confz_fs_init' --- zsh-functions/confz_fs_init 2017-12-07 19:21:54 +0000 +++ zsh-functions/confz_fs_init 2017-11-22 21:18:20 +0000 @@ -581,7 +581,6 @@ checkvars device mountpoint filesystem defvar opts noatime defvar dump 0 - defvar fstab /etc/fstab if [[ $vars[filesystem] == xfs ]]; then defvar pass 0 else @@ -589,7 +588,7 @@ fi local device mountpoint filesystem opts dump pass - sed '/^[ \t]*#/d;s/#.*//;s/[ \t]\+/ /g' $vars[fstab] | \ + sed '/^[ \t]*#/d;s/#.*//;s/[ \t]\+/ /g' /etc/fstab | \ while read device mountpoint filesystem opts dump pass; do if [[ $mountpoint == ${vars[mountpoint]} ]]; then [[ $device == ${vars[device]} && opts != *bind* ]] || \ @@ -616,12 +615,12 @@ fi done - fail_reason="no entry for ${(qqq)vars[mountpoint]} in ${(qqq)vars[fstab]}" + fail_reason="no entry for ${(qqq)vars[mountpoint]} in /etc/fstab" return 1 # did not find matching entry } confz_fstab_do() { - print -r - >>$vars[fstab] ${vars[device]}$'\t'${vars[mountpoint]}$'\t'${vars[filesystem]}$'\t'${vars[opts]}$'\t'${vars[dump]}' '${vars[pass]} + print -r - >>/etc/fstab ${vars[device]}$'\t'${vars[mountpoint]}$'\t'${vars[filesystem]}$'\t'${vars[opts]}$'\t'${vars[dump]}' '${vars[pass]} }