diff options
-rw-r--r-- | core-services/03-filesystems.sh | 3 | ||||
-rw-r--r-- | crypt.awk | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/core-services/03-filesystems.sh b/core-services/03-filesystems.sh index e46c83d..fa1af38 100644 --- a/core-services/03-filesystems.sh +++ b/core-services/03-filesystems.sh @@ -24,8 +24,7 @@ if [ -e /etc/crypttab ]; then msg "Activating encrypted devices...\n" if [ -e /etc/runit/crypt.awk ]; then awk -f /etc/runit/crypt.awk /etc/crypttab - else: - msg_warn "parsing file not found, fallback to dest src filds\n" + else awk '/^#/ || /^$/ { next } NF>2 { print "unsupported crypttab: " $0 >"/dev/stderr"; next} { system("cryptsetup luksOpen " $2 " " $1) }' /etc/crypttab diff --git a/crypt.awk b/crypt.awk index 56ee2a3..b2cefdc 100644 --- a/crypt.awk +++ b/crypt.awk @@ -22,7 +22,7 @@ NF>4 { print "a valid crypttab has max 4 cols not " NF >"/dev/stderr"; next } ccmd=""; } else { - # the option fild is not empty parse the options + # the option field is not empty parse the options dest=$1 key=$3 split($4, opts, ","); |