Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
rc.lib: Fix #11
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Mar 3, 2020
1 parent 85cead1 commit aab1a29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/init/rc.lib
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ parse_crypttab() {
[ "${name##\#*}" ] || continue

# Break on invalid crypttab (> 5 columns).
[ "$err" ] && break
[ "$err" ] && {
printf 'error: A valid crypttab has only 4 columns.\n'
break
}

# Turn 'UUID=*' lines into device names.
[ "${dev##UUID*}" ] || dev=$(blkid -l -o device -t "$dev")
Expand Down

0 comments on commit aab1a29

Please sign in to comment.