=== modified file 'zsh-functions/confz_fs_init' --- zsh-functions/confz_fs_init 2015-06-25 16:22:16 +0000 +++ zsh-functions/confz_fs_init 2015-06-22 14:42:16 +0000 @@ -379,7 +379,7 @@ 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* ]] || \ + [[ $device == ${vars[device]} ]] || \ die "$0: $mountpoint already present" \ "with different device than ${(qqq)vars[device]}" @@ -426,20 +426,6 @@ } -# make device mounted on mountpoint -confz_bind_mounted_check() { - checkvars device origin mountpoint - - fail_reason="could not find ${vars[device]} ${vars[mountpoint]} in /proc/mounts" - grep -q "^${vars[device]} ${vars[mountpoint]} " /proc/mounts -} - -confz_bind_mounted_do() { - mkdir -p ${vars[mountpoint]} || return $? - mount --bind "$@" ${vars[origin]} ${vars[mountpoint]} -} - - # create LVM2 logical volume, and make sure it's in fstab and mounted confz_mounted_volume_check() { checkvars lv_name label