summaryrefslogtreecommitdiff
path: root/stc/stc.conf
diff options
context:
space:
mode:
Diffstat (limited to 'stc/stc.conf')
-rw-r--r--stc/stc.conf26
1 files changed, 25 insertions, 1 deletions
diff --git a/stc/stc.conf b/stc/stc.conf
index 1ffec32..acfcd9b 100644
--- a/stc/stc.conf
+++ b/stc/stc.conf
@@ -1,6 +1,10 @@
+# check that we accept valid items...
+#
+
[Filesystem BigStorage]
NickName=BigStorage
Device=/dev/disk/md-uuid-01234:56789
+Filesystem:mount_path=/mnt/BigStorage;
Depends=BigStorage_mdraid
Auto=yes
@@ -11,10 +15,30 @@ UUID=01234:56789
[Filesystem SekritStuff]
NickName=My Secret Stuff
Device=/dev/disk/by-uuid/1234
-Options=Filesystem:options=noatime,dirsync
+Options=Filesystem:mount_path=/mnt/SekritStuff;Filesystem:options=noatime,dirsync
Depends=SekritStuff_LUKS
[LUKS SekritStuff_LUKS]
NickName=My Secret Stuff (Encrypted)
Device=/dev/disk/by-uuid/12345
Options=LUKS:password=xyz123
+
+# ...and that we reject invalid items
+#
+
+# group name invalid (not two tokens)
+[Blah]
+
+# unknown type
+[XYZType ValidIdentifier]
+
+# invalid identifier (only [a-z][A-Z][0-9]_] allowed)
+[Filesystem with-dash]
+
+# another invalid identifier
+[Filesystem with space]
+
+# invalid options (no equal sign)
+[MDRaid foo]
+UUID=01234:56789
+Options=foo