blob: bb31c2e83a981afb5e8b65941b7a4477cac28c05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# check that we accept valid items...
#
[Filesystem BigStorage]
Comment=BigStorage
Depends=BigStorage_mdraid
# this should cause a warning because 'yes' is not accepted (item, however, is not rejected)
Auto=yes
FilesystemDevice=/dev/disk/md-uuid-01234:56789
FilesystemMountPath=/mnt/BigStorage
[Raid BigStorage_mdraid]
Comment=BigStorage RAID Array
RaidUUID=01234:56789
[Filesystem SekritStuff]
Comment=My Secret Stuff
Depends=SekritStuff_Luks
Auto=true
FilesystemDevice=/dev/disk/by-uuid/1234
FilesystemMountPath=/mnt/SekritStuff
FilesystemOptions=noatime,dirsync
[Luks SekritStuff_Luks]
Comment=My Secret Stuff (Encrypted)
LuksUUID=12345
LuksPassphrase=xyz123
[Filesystem ItemWithUnresolved]
FilesystemDevice=/dev/sda
FilesystemMountPath=/mnt/Z
Depends=NonExisting
[Raid OtherRaid]
Comment=Other RAID
RaidName=homehost:array_name
# Auto=1 is equivalent to Auto=true
Auto=1
# ...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]
# can't use Device for Raid (it doesn't exist yet)
[Raid bar]
Comment=Other RAID
Device=/dev/md0
|