From aab1a29549d8f53f2c00b6ad508f586aa93ec43a Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 3 Mar 2020 23:05:36 +0200 Subject: [PATCH] rc.lib: Fix #11 --- lib/init/rc.lib | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/init/rc.lib b/lib/init/rc.lib index 37d8302..dab81ba 100644 --- a/lib/init/rc.lib +++ b/lib/init/rc.lib @@ -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")