diff options
author | Thomas Bächler <thomas@archlinux.org> | 2011-01-28 20:58:45 +0100 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2011-01-28 20:58:45 +0100 |
commit | c44eccadf84ba0d9d0d449a870aad63bb03fd8d3 (patch) | |
tree | b6420d5bdc4a489daf5b5458425724385bef5bcf /functions | |
parent | f4703f832e6d8578c52dd8a71b9bf34894fe3d34 (diff) | |
download | initscripts-c44eccadf84ba0d9d0d449a870aad63bb03fd8d3.tar.xz |
Only call activate_vgs a second time if any logical volumes have actually been activated.
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -272,7 +272,11 @@ read_crypttab() { while read line; do [[ $line && ${line:0:1} != '#' ]] || continue eval nspo=("${line%#*}") - $1 "${nspo[0]}" "${nspo[1]}" "${nspo[2]}" "${nspo[*]:3}" || failed=1 + if $1 "${nspo[0]}" "${nspo[1]}" "${nspo[2]}" "${nspo[*]:3}"; then + crypto_unlocked=1 + else + failed=1 + fi done < /etc/crypttab return $failed } |