summaryrefslogtreecommitdiff
path: root/source/a/udisks2/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/udisks2/doinst.sh')
-rw-r--r--source/a/udisks2/doinst.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/a/udisks2/doinst.sh b/source/a/udisks2/doinst.sh
new file mode 100644
index 00000000..c186599a
--- /dev/null
+++ b/source/a/udisks2/doinst.sh
@@ -0,0 +1,12 @@
+# udisks2 is stupid about testing files before using them. If /etc/crypttab
+# does not exist, it will fill the log with "errors" as it tries to open the
+# nonexistent file. There's really no reason that a system without encrypted
+# volumes should require this file, but nobody upstream cares to fix the
+# problem (and the code's too messy for me to find it), so we have little
+# choice but to trowel over this. (sigh)
+
+if [ ! -r etc/crypttab ]; then
+ # echo "HEY, EVERYONE SHOULD HAVE A CRYPTTAB!!!" (just kidding)
+ touch etc/crypttab
+fi
+