blob: ca7cacd5c4fbd6804097c7bb56beb3a36141f6b3 (
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]
NickName=BigStorage
Device=/dev/disk/md-uuid-01234:56789
Options=Filesystem:mount_path=/mnt/BigStorage
Depends=BigStorage_mdraid
Auto=yes
[MDRaid BigStorage_mdraid]
NickName=BigStorage RAID Array
UUID=01234:56789
[Filesystem SekritStuff]
NickName=My Secret Stuff
Device=/dev/disk/by-uuid/1234
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
[Filesystem ItemWithUnresolved]
Device=/dev/sda
Options=Filesystem:mount_path=/mnt/Z
Depends=NonExisting
[MDRaid OtherRaid]
NickName=Other RAID
Name=homehost:array_name
# ...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
# can't use Device for MDRaid (it doesn't exist yet)
[MDRaid bar]
NickName=Other RAID
Device=/dev/md0
|