about summary refs log tree commit diff
path: root/core-services
diff options
context:
space:
mode:
authorMarkus.Berger <Markus.Berger@pf4sh.de>2015-01-05 14:29:30 +0100
committerMarkus.Berger <Markus.Berger@pf4sh.de>2015-01-05 14:29:30 +0100
commitde0a29236d6ba04502b193719396eb9a79b3e98a (patch)
tree8a35d2007af17fa35ab39435101f168a4a64b775 /core-services
parent6394a10a18da669b9054244293d19902de037892 (diff)
downloadrunit-void-de0a29236d6ba04502b193719396eb9a79b3e98a.tar.gz
runit-void-de0a29236d6ba04502b193719396eb9a79b3e98a.tar.xz
runit-void-de0a29236d6ba04502b193719396eb9a79b3e98a.zip
add function to parse more crypttab filds and options
Diffstat (limited to 'core-services')
-rw-r--r--core-services/03-filesystems.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/core-services/03-filesystems.sh b/core-services/03-filesystems.sh
index af55570..8b1e16b 100644
--- a/core-services/03-filesystems.sh
+++ b/core-services/03-filesystems.sh
@@ -22,9 +22,7 @@ fi
 
 if [ -e /etc/crypttab ]; then
     msg "Activating encrypted devices...\n"
-    awk '/^#/ || /^$/ { next }
-         NF>2 { print "unsupported crypttab: " $0 >"/dev/stderr"; next }
-         { system("cryptsetup luksOpen " $2 " " $1) }' /etc/crypttab
+    awk -f /etc/runit/crypt.awk /etc/crypttab
 
     if [ -x /sbin/vgchange ]; then
         msg "Activating LVM devices for dm-crypt...\n"