summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-x112
1 files changed, 12 insertions, 0 deletions
diff --git a/1 b/1
index dda6746..8b02fe6 100755
--- a/1
+++ b/1
@@ -97,6 +97,18 @@ if [ -x /usr/sbin/dmraid ]; then
     /usr/sbin/dmraid -i -ay
 fi
 
+if [ -x /usr/sbin/vgchange ]; then
+    msg "Activating LVM devices...\n"
+    vgchange --sysinit -a y
+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
+fi
+
 if [ -x /usr/bin/btrfs ]; then
     msg "Activating btrfs devices...\n"
     btrfs device scan