Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
augeas /
lenses /
dist /
Delete
Unzip
Name
Size
Permission
Date
Action
tests
[ DIR ]
drwxr-xr-x
2026-05-18 06:31
access.aug
3.58
KB
-rw-r--r--
2026-05-06 08:42
activemq_conf.aug
1.47
KB
-rw-r--r--
2026-05-06 08:42
activemq_xml.aug
864
B
-rw-r--r--
2026-05-06 08:42
afs_cellalias.aug
1.56
KB
-rw-r--r--
2026-05-06 08:42
aliases.aug
2.18
KB
-rw-r--r--
2026-05-06 08:42
anaconda.aug
775
B
-rw-r--r--
2026-05-06 08:42
anacron.aug
2.49
KB
-rw-r--r--
2026-05-06 08:42
approx.aug
1.26
KB
-rw-r--r--
2026-05-06 08:42
apt_update_manager.aug
1.11
KB
-rw-r--r--
2026-05-06 08:42
aptcacherngsecurity.aug
726
B
-rw-r--r--
2026-05-06 08:42
aptconf.aug
3.9
KB
-rw-r--r--
2026-05-06 08:42
aptpreferences.aug
1.79
KB
-rw-r--r--
2026-05-06 08:42
aptsources.aug
1.98
KB
-rw-r--r--
2026-05-06 08:42
authinfo2.aug
1.44
KB
-rw-r--r--
2026-05-06 08:42
authorized_keys.aug
1.84
KB
-rw-r--r--
2026-05-06 08:42
authselectpam.aug
3.7
KB
-rw-r--r--
2026-05-06 08:42
automaster.aug
3.31
KB
-rw-r--r--
2026-05-06 08:42
automounter.aug
4.05
KB
-rw-r--r--
2026-05-06 08:42
avahi.aug
1.38
KB
-rw-r--r--
2026-05-06 08:42
backuppchosts.aug
1014
B
-rw-r--r--
2026-05-06 08:42
bbhosts.aug
4.24
KB
-rw-r--r--
2026-05-06 08:42
bootconf.aug
3.65
KB
-rw-r--r--
2026-05-06 08:42
build.aug
16.65
KB
-rw-r--r--
2026-05-06 08:42
cachefilesd.aug
2
KB
-rw-r--r--
2026-05-06 08:42
carbon.aug
1.54
KB
-rw-r--r--
2026-05-06 08:42
ceph.aug
719
B
-rw-r--r--
2026-05-06 08:42
cgconfig.aug
3.37
KB
-rw-r--r--
2026-05-06 08:42
cgrules.aug
2.38
KB
-rw-r--r--
2026-05-06 08:42
channels.aug
3.84
KB
-rw-r--r--
2026-05-06 08:42
chrony.aug
13.79
KB
-rw-r--r--
2026-05-06 08:42
clamav.aug
1.72
KB
-rw-r--r--
2026-05-06 08:42
cmdline.aug
500
B
-rw-r--r--
2026-05-06 08:42
cobblermodules.aug
398
B
-rw-r--r--
2026-05-06 08:42
cobblersettings.aug
2.24
KB
-rw-r--r--
2026-05-06 08:42
cockpit.aug
1.96
KB
-rw-r--r--
2026-05-06 08:42
collectd.aug
869
B
-rw-r--r--
2026-05-06 08:42
cpanel.aug
824
B
-rw-r--r--
2026-05-06 08:42
cron.aug
4.05
KB
-rw-r--r--
2026-05-06 08:42
cron_user.aug
1.26
KB
-rw-r--r--
2026-05-06 08:42
crypttab.aug
3.08
KB
-rw-r--r--
2026-05-06 08:42
csv.aug
1.18
KB
-rw-r--r--
2026-05-06 08:42
cups.aug
459
B
-rw-r--r--
2026-05-06 08:42
cyrus_imapd.aug
1.51
KB
-rw-r--r--
2026-05-06 08:42
darkice.aug
773
B
-rw-r--r--
2026-05-06 08:42
debctrl.aug
3.61
KB
-rw-r--r--
2026-05-06 08:42
desktop.aug
1.39
KB
-rw-r--r--
2026-05-06 08:42
devfsrules.aug
619
B
-rw-r--r--
2026-05-06 08:42
device_map.aug
620
B
-rw-r--r--
2026-05-06 08:42
dhclient.aug
6.69
KB
-rw-r--r--
2026-05-06 08:42
dhcpd.aug
20.88
KB
-rw-r--r--
2026-05-06 08:42
dns_zone.aug
2.89
KB
-rw-r--r--
2026-05-06 08:42
dnsmasq.aug
2.16
KB
-rw-r--r--
2026-05-06 08:42
dovecot.aug
3.98
KB
-rw-r--r--
2026-05-06 08:42
dpkg.aug
2.78
KB
-rw-r--r--
2026-05-06 08:42
dput.aug
2.16
KB
-rw-r--r--
2026-05-06 08:42
erlang.aug
4.33
KB
-rw-r--r--
2026-05-06 08:42
ethers.aug
663
B
-rw-r--r--
2026-05-06 08:42
exports.aug
2.37
KB
-rw-r--r--
2026-05-06 08:42
fai_diskconfig.aug
9.28
KB
-rw-r--r--
2026-05-06 08:42
fail2ban.aug
1.79
KB
-rw-r--r--
2026-05-06 08:42
fonts.aug
819
B
-rw-r--r--
2026-05-06 08:42
fstab.aug
1.23
KB
-rw-r--r--
2026-05-06 08:42
fuse.aug
871
B
-rw-r--r--
2026-05-06 08:42
gdm.aug
1.8
KB
-rw-r--r--
2026-05-06 08:42
getcap.aug
1.57
KB
-rw-r--r--
2026-05-06 08:42
group.aug
1.66
KB
-rw-r--r--
2026-05-06 08:42
grub.aug
11.05
KB
-rw-r--r--
2026-05-06 08:42
grubenv.aug
508
B
-rw-r--r--
2026-05-06 08:42
gshadow.aug
2.19
KB
-rw-r--r--
2026-05-06 08:42
gtkbookmarks.aug
855
B
-rw-r--r--
2026-05-06 08:42
host_conf.aug
1.9
KB
-rw-r--r--
2026-05-06 08:42
hostname.aug
435
B
-rw-r--r--
2026-05-06 08:42
hosts.aug
485
B
-rw-r--r--
2026-05-06 08:42
hosts_access.aug
4.32
KB
-rw-r--r--
2026-05-06 08:42
htpasswd.aug
1.02
KB
-rw-r--r--
2026-05-06 08:42
httpd.aug
7.35
KB
-rw-r--r--
2026-05-06 08:42
inetd.aug
6.22
KB
-rw-r--r--
2026-05-06 08:42
inifile.aug
15.49
KB
-rw-r--r--
2026-05-06 08:42
inittab.aug
780
B
-rw-r--r--
2026-05-06 08:42
inputrc.aug
1.62
KB
-rw-r--r--
2026-05-06 08:42
interfaces.aug
4.62
KB
-rw-r--r--
2026-05-06 08:42
iproute2.aug
323
B
-rw-r--r--
2026-05-06 08:42
iptables.aug
2.64
KB
-rw-r--r--
2026-05-06 08:42
iscsid.aug
684
B
-rw-r--r--
2026-05-06 08:42
jaas.aug
1.57
KB
-rw-r--r--
2026-05-06 08:42
jettyrealm.aug
1.52
KB
-rw-r--r--
2026-05-06 08:42
jmxaccess.aug
1.35
KB
-rw-r--r--
2026-05-06 08:42
jmxpassword.aug
1.34
KB
-rw-r--r--
2026-05-06 08:42
json.aug
2.15
KB
-rw-r--r--
2026-05-06 08:42
kdump.aug
3.06
KB
-rw-r--r--
2026-05-06 08:42
keepalived.aug
10.73
KB
-rw-r--r--
2026-05-06 08:42
known_hosts.aug
1.93
KB
-rw-r--r--
2026-05-06 08:42
koji.aug
898
B
-rw-r--r--
2026-05-06 08:42
krb5.aug
6.98
KB
-rw-r--r--
2026-05-06 08:42
ldif.aug
7.65
KB
-rw-r--r--
2026-05-06 08:42
ldso.aug
1.06
KB
-rw-r--r--
2026-05-06 08:42
lightdm.aug
1.75
KB
-rw-r--r--
2026-05-06 08:42
limits.aug
2.02
KB
-rw-r--r--
2026-05-06 08:42
login_defs.aug
615
B
-rw-r--r--
2026-05-06 08:42
logrotate.aug
4.23
KB
-rw-r--r--
2026-05-06 08:42
logwatch.aug
1.44
KB
-rw-r--r--
2026-05-06 08:42
lokkit.aug
2.16
KB
-rw-r--r--
2026-05-06 08:42
lvm.aug
2.03
KB
-rw-r--r--
2026-05-06 08:42
mailscanner.aug
1.66
KB
-rw-r--r--
2026-05-06 08:42
mailscanner_rules.aug
2.84
KB
-rw-r--r--
2026-05-06 08:42
masterpasswd.aug
4.36
KB
-rw-r--r--
2026-05-06 08:42
mcollective.aug
1.09
KB
-rw-r--r--
2026-05-06 08:42
mdadm_conf.aug
10.05
KB
-rw-r--r--
2026-05-06 08:42
memcached.aug
1.24
KB
-rw-r--r--
2026-05-06 08:42
mke2fs.aug
6.29
KB
-rw-r--r--
2026-05-06 08:42
modprobe.aug
3.34
KB
-rw-r--r--
2026-05-06 08:42
modules.aug
741
B
-rw-r--r--
2026-05-06 08:42
modules_conf.aug
1.04
KB
-rw-r--r--
2026-05-06 08:42
mongodbserver.aug
1.17
KB
-rw-r--r--
2026-05-06 08:42
monit.aug
2.13
KB
-rw-r--r--
2026-05-06 08:42
multipath.aug
4.21
KB
-rw-r--r--
2026-05-06 08:42
mysql.aug
1.95
KB
-rw-r--r--
2026-05-06 08:42
nagioscfg.aug
2.09
KB
-rw-r--r--
2026-05-06 08:42
nagiosobjects.aug
1.57
KB
-rw-r--r--
2026-05-06 08:42
netmasks.aug
1.69
KB
-rw-r--r--
2026-05-06 08:42
networkmanager.aug
2.18
KB
-rw-r--r--
2026-05-06 08:42
networks.aug
1.09
KB
-rw-r--r--
2026-05-06 08:42
nginx.aug
3.65
KB
-rw-r--r--
2026-05-06 08:42
nrpe.aug
1.78
KB
-rw-r--r--
2026-05-06 08:42
nslcd.aug
9.87
KB
-rw-r--r--
2026-05-06 08:42
nsswitch.aug
2.33
KB
-rw-r--r--
2026-05-06 08:42
ntp.aug
5.29
KB
-rw-r--r--
2026-05-06 08:42
ntpd.aug
4.75
KB
-rw-r--r--
2026-05-06 08:42
odbc.aug
1.42
KB
-rw-r--r--
2026-05-06 08:42
opendkim.aug
3.1
KB
-rw-r--r--
2026-05-06 08:42
openshift_config.aug
2.46
KB
-rw-r--r--
2026-05-06 08:42
openshift_http.aug
1.03
KB
-rw-r--r--
2026-05-06 08:42
openshift_quickstarts.aug
1.02
KB
-rw-r--r--
2026-05-06 08:42
openvpn.aug
22.28
KB
-rw-r--r--
2026-05-06 08:42
oz.aug
1.35
KB
-rw-r--r--
2026-05-06 08:42
pagekite.aug
2.6
KB
-rw-r--r--
2026-05-06 08:42
pam.aug
2.58
KB
-rw-r--r--
2026-05-06 08:42
pamconf.aug
1.23
KB
-rw-r--r--
2026-05-06 08:42
passwd.aug
3.52
KB
-rw-r--r--
2026-05-06 08:42
pbuilder.aug
638
B
-rw-r--r--
2026-05-06 08:42
pg_hba.aug
2.97
KB
-rw-r--r--
2026-05-06 08:42
pgbouncer.aug
1.43
KB
-rw-r--r--
2026-05-06 08:42
php.aug
2.34
KB
-rw-r--r--
2026-05-06 08:42
phpvars.aug
3.85
KB
-rw-r--r--
2026-05-06 08:42
postfix_access.aug
771
B
-rw-r--r--
2026-05-06 08:42
postfix_main.aug
1.52
KB
-rw-r--r--
2026-05-06 08:42
postfix_master.aug
1.9
KB
-rw-r--r--
2026-05-06 08:42
postfix_passwordmap.aug
1.28
KB
-rw-r--r--
2026-05-06 08:42
postfix_sasl_smtpd.aug
697
B
-rw-r--r--
2026-05-06 08:42
postfix_transport.aug
1.48
KB
-rw-r--r--
2026-05-06 08:42
postfix_virtual.aug
1.32
KB
-rw-r--r--
2026-05-06 08:42
postgresql.aug
2.1
KB
-rw-r--r--
2026-05-06 08:42
properties.aug
2.3
KB
-rw-r--r--
2026-05-06 08:42
protocols.aug
1.05
KB
-rw-r--r--
2026-05-06 08:42
puppet.aug
1.52
KB
-rw-r--r--
2026-05-06 08:42
puppet_auth.aug
1.95
KB
-rw-r--r--
2026-05-06 08:42
puppetfile.aug
2.27
KB
-rw-r--r--
2026-05-06 08:42
puppetfileserver.aug
3.12
KB
-rw-r--r--
2026-05-06 08:42
pylonspaste.aug
2.3
KB
-rw-r--r--
2026-05-06 08:42
pythonpaste.aug
1.99
KB
-rw-r--r--
2026-05-06 08:42
qpid.aug
670
B
-rw-r--r--
2026-05-06 08:42
quote.aug
6.71
KB
-rw-r--r--
2026-05-06 08:42
rabbitmq.aug
4.69
KB
-rw-r--r--
2026-05-06 08:42
radicale.aug
1.48
KB
-rw-r--r--
2026-05-06 08:42
rancid.aug
927
B
-rw-r--r--
2026-05-06 08:42
redis.aug
6.5
KB
-rw-r--r--
2026-05-06 08:42
reprepro_uploaders.aug
5.47
KB
-rw-r--r--
2026-05-06 08:42
resolv.aug
4.03
KB
-rw-r--r--
2026-05-06 08:42
rhsm.aug
1.1
KB
-rw-r--r--
2026-05-06 08:42
rmt.aug
788
B
-rw-r--r--
2026-05-06 08:42
rsyncd.aug
1.97
KB
-rw-r--r--
2026-05-06 08:42
rsyslog.aug
3.27
KB
-rw-r--r--
2026-05-06 08:42
rtadvd.aug
854
B
-rw-r--r--
2026-05-06 08:42
rx.aug
4.2
KB
-rw-r--r--
2026-05-06 08:42
samba.aug
1.71
KB
-rw-r--r--
2026-05-06 08:42
schroot.aug
1.79
KB
-rw-r--r--
2026-05-06 08:42
securetty.aug
450
B
-rw-r--r--
2026-05-06 08:42
semanage.aug
1.02
KB
-rw-r--r--
2026-05-06 08:42
sep.aug
1.28
KB
-rw-r--r--
2026-05-06 08:42
services.aug
2.82
KB
-rw-r--r--
2026-05-06 08:42
shadow.aug
2.35
KB
-rw-r--r--
2026-05-06 08:42
shells.aug
745
B
-rw-r--r--
2026-05-06 08:42
shellvars.aug
12.02
KB
-rw-r--r--
2026-05-06 08:42
shellvars_list.aug
1.74
KB
-rw-r--r--
2026-05-06 08:42
simplelines.aug
1.13
KB
-rw-r--r--
2026-05-06 08:42
simplevars.aug
1.4
KB
-rw-r--r--
2026-05-06 08:42
sip_conf.aug
1.61
KB
-rw-r--r--
2026-05-06 08:42
slapd.aug
5.2
KB
-rw-r--r--
2026-05-06 08:42
smbusers.aug
781
B
-rw-r--r--
2026-05-06 08:42
solaris_system.aug
3.15
KB
-rw-r--r--
2026-05-06 08:42
soma.aug
1.14
KB
-rw-r--r--
2026-05-06 08:42
sos.aug
807
B
-rw-r--r--
2026-05-06 08:42
spacevars.aug
1.42
KB
-rw-r--r--
2026-05-06 08:42
splunk.aug
1.64
KB
-rw-r--r--
2026-05-06 08:42
squid.aug
15.95
KB
-rw-r--r--
2026-05-06 08:42
ssh.aug
4.39
KB
-rw-r--r--
2026-05-06 08:42
sshd.aug
4.6
KB
-rw-r--r--
2026-05-06 08:42
sssd.aug
861
B
-rw-r--r--
2026-05-06 08:42
star.aug
941
B
-rw-r--r--
2026-05-06 08:42
strongswan.aug
1.63
KB
-rw-r--r--
2026-05-06 08:42
stunnel.aug
2.21
KB
-rw-r--r--
2026-05-06 08:42
subversion.aug
2.75
KB
-rw-r--r--
2026-05-06 08:42
sudoers.aug
20.08
KB
-rw-r--r--
2026-05-06 08:42
sysconfig.aug
2.49
KB
-rw-r--r--
2026-05-06 08:42
sysconfig_route.aug
2.55
KB
-rw-r--r--
2026-05-06 08:42
sysctl.aug
1.36
KB
-rw-r--r--
2026-05-06 08:42
syslog.aug
7.33
KB
-rw-r--r--
2026-05-06 08:42
systemd.aug
6
KB
-rw-r--r--
2026-05-06 08:42
termcap.aug
1.03
KB
-rw-r--r--
2026-05-06 08:42
thttpd.aug
1.31
KB
-rw-r--r--
2026-05-06 08:42
tinc.aug
1.08
KB
-rw-r--r--
2026-05-06 08:42
tmpfiles.aug
3.08
KB
-rw-r--r--
2026-05-06 08:42
toml.aug
4.21
KB
-rw-r--r--
2026-05-06 08:42
trapperkeeper.aug
4.01
KB
-rw-r--r--
2026-05-06 08:42
tuned.aug
387
B
-rw-r--r--
2026-05-06 08:42
up2date.aug
2.21
KB
-rw-r--r--
2026-05-06 08:42
updatedb.aug
1.13
KB
-rw-r--r--
2026-05-06 08:42
util.aug
4.85
KB
-rw-r--r--
2026-05-06 08:42
vfstab.aug
1.71
KB
-rw-r--r--
2026-05-06 08:42
vmware_config.aug
702
B
-rw-r--r--
2026-05-06 08:42
vsftpd.aug
2.72
KB
-rw-r--r--
2026-05-06 08:42
webmin.aug
1.23
KB
-rw-r--r--
2026-05-06 08:42
wine.aug
1.92
KB
-rw-r--r--
2026-05-06 08:42
xendconfsxp.aug
1.07
KB
-rw-r--r--
2026-05-06 08:42
xinetd.aug
4.02
KB
-rw-r--r--
2026-05-06 08:42
xml.aug
6.33
KB
-rw-r--r--
2026-05-06 08:42
xorg.aug
10.43
KB
-rw-r--r--
2026-05-06 08:42
xymon.aug
2.26
KB
-rw-r--r--
2026-05-06 08:42
xymon_alerting.aug
6.11
KB
-rw-r--r--
2026-05-06 08:42
yaml.aug
1.54
KB
-rw-r--r--
2026-05-06 08:42
yum.aug
2.19
KB
-rw-r--r--
2026-05-06 08:42
Save
Rename
(* Module: FAI_DiskConfig Parses disk_config files for FAI Author: Raphael Pinson <raphink@gmail.com> About: Reference This lens tries to keep as close as possible to the FAI wiki where possible: http://wiki.fai-project.org/wiki/Setup-storage#New_configuration_file_syntax About: License This file is licensed under the LGPL v2+, like the rest of Augeas. About: Examples The <Test_FAI_DiskConfig> file contains various examples and tests. *) module FAI_DiskConfig = (* autoload xfm *) (************************************************************************ * Group: USEFUL PRIMITIVES *************************************************************************) (* Group: Generic primitives *) (* Variable: eol *) let eol = Util.eol (* Variable: space *) let space = Sep.space (* Variable: empty *) let empty = Util.empty (* Variable: comment *) let comment = Util.comment (* Variable: tag A generic tag beginning with a colon *) let tag (re:regexp) = [ Util.del_str ":" . key re ] (* Variable: generic_opt A generic key/value option *) let generic_opt (type:string) (kw:regexp) = [ key type . Util.del_str ":" . store kw ] (* Variable: generic_opt_list A generic key/list option *) let generic_opt_list (type:string) (kw:regexp) = [ key type . Util.del_str ":" . counter "locallist" . Build.opt_list [seq "locallist" . store kw] Sep.comma ] (************************************************************************ * Group: RECORDS *************************************************************************) (* Group: volume *) (* Variable: mountpoint_kw *) let mountpoint_kw = "-" (* do not mount *) | "swap" (* swap space *) (* fully qualified path; if :encrypt is given, the partition * will be encrypted, the key is generated automatically *) | /\/[^: \t\n]*/ (* Variable: encrypt encrypt tag *) let encrypt = tag "encrypt" (* Variable: mountpoint *) let mountpoint = [ label "mountpoint" . store mountpoint_kw (* encrypt is only for the fspath, but we parse it anyway *) . encrypt?] (* Variable: resize resize tag *) let resize = tag "resize" (* Variable: size_kw Regexps for size *) let size_kw = /[0-9]+[kMGTP%]?(-([0-9]+[kMGTP%]?)?)?/ | /-[0-9]+[kMGTP%]?/ (* Variable: size *) let size = [ label "size" . store size_kw . resize? ] (* Variable: filesystem_kw Regexps for filesystem *) let filesystem_kw = "-" | "swap" (* NOTE: Restraining this regexp would improve perfs *) | (Rx.no_spaces - ("-" | "swap")) (* mkfs.xxx must exist *) (* Variable: filesystem *) let filesystem = [ label "filesystem" . store filesystem_kw ] (* Variable: mount_option_value *) let mount_option_value = [ label "value" . Util.del_str "=" . store /[^,= \t\n]+/ ] (* Variable: mount_option Counting options *) let mount_option = [ seq "mount_option" . store /[^,= \t\n]+/ . mount_option_value? ] (* Variable: mount_options An array of <mount_option>s *) let mount_options = [ label "mount_options" . counter "mount_option" . Build.opt_list mount_option Sep.comma ] (* Variable: fs_option *) let fs_option = [ key /createopts|tuneopts/ . Util.del_str "=\"" . store /[^"\n]*/ . Util.del_str "\"" ] (* Variable: fs_options An array of <fs_option>s *) let fs_options = (* options to append to mkfs.xxx and to the filesystem-specific * tuning tool *) [ label "fs_options" . Build.opt_list fs_option Sep.space ] (* Variable: volume_full *) let volume_full (type:lens) (third_field:lens) = [ type . space . mountpoint .space (* The third field changes depending on types *) . third_field . space . filesystem . space . mount_options . (space . fs_options)? . eol ] (* Variable: name LVM volume group name *) let name = [ label "name" . store /[^\/ \t\n]+/ ] (* Variable: partition An optional partition number for <disk> *) let partition = [ label "partition" . Util.del_str "." . store /[0-9]+/ ] (* Variable: disk *) let disk = [ label "disk" . store /[^., \t\n]+/ . partition? ] (* Variable: vg_option An option for <volume_vg> *) let vg_option = [ key "pvcreateopts" . Util.del_str "=\"" . store /[^"\n]*/ . Util.del_str "\"" ] (* Variable: volume_vg *) let volume_vg = [ key "vg" . space . name . space . disk . (space . vg_option)? . eol ] (* Variable: spare_missing *) let spare_missing = tag /spare|missing/ (* Variable: disk_with_opt A <disk> with a spare/missing option for raids *) let disk_with_opt = [ label "disk" . store /[^:., \t\n]+/ . partition? . spare_missing* ] (* Variable: disk_list A list of <disk_with_opt>s *) let disk_list = Build.opt_list disk_with_opt Sep.comma (* Variable: type_label_lv *) let type_label_lv = label "lv" . [ label "vg" . store (/[^# \t\n-]+/ - "raw") ] . Util.del_str "-" . [ label "name" . store /[^ \t\n]+/ ] (* Variable: volume_tmpfs *) let volume_tmpfs = [ key "tmpfs" . space . mountpoint .space . size . space . mount_options . (space . fs_options)? . eol ] (* Variable: volume_lvm *) let volume_lvm = volume_full type_label_lv size (* lvm logical volume: vg name and lv name *) | volume_vg (* Variable: volume_raid *) let volume_raid = volume_full (key /raid[0156]/) disk_list (* raid level *) (* Variable: device *) let device = [ label "device" . store Rx.fspath ] (* Variable: volume_cryptsetup *) let volume_cryptsetup = volume_full (key ("swap"|"tmp"|"luks")) device (* Variable: volume *) let volume = volume_full (key "primary") size (* for physical disks only *) | volume_full (key "logical") size (* for physical disks only *) | volume_full (key "raw-disk") size (* Variable: volume_or_comment A succesion of <volume>s and <comment>s *) let volume_or_comment (vol:lens) = (vol|empty|comment)* . vol (* Variable: disk_config_entry *) let disk_config_entry (kw:regexp) (opt:lens) (vol:lens) = [ key "disk_config" . space . store kw . (space . opt)* . eol . (volume_or_comment vol)? ] (* Variable: lvmoption *) let lvmoption = (* preserve partitions -- always *) generic_opt "preserve_always" /[^\/, \t\n-]+-[^\/, \t\n-]+(,[^\/, \t\n-]+-[^\/, \t\n-]+)*/ (* preserve partitions -- unless the system is installed * for the first time *) | generic_opt "preserve_reinstall" /[^\/, \t\n-]+-[^\/, \t\n-]+(,[^\/, \t\n-]+-[^\/, \t\n-]+)*/ (* attempt to resize partitions *) | generic_opt "resize" /[^\/, \t\n-]+-[^\/, \t\n-]+(,[^\/, \t\n-]+-[^\/, \t\n-]+)*/ (* when creating the fstab, the key used for defining the device * may be the device (/dev/xxx), a label given using -L, or the uuid *) | generic_opt "fstabkey" /device|label|uuid/ (* Variable: raidoption *) let raidoption = (* preserve partitions -- always *) generic_opt_list "preserve_always" (Rx.integer | "all") (* preserve partitions -- unless the system is installed * for the first time *) | generic_opt_list "preserve_reinstall" Rx.integer (* when creating the fstab, the key used for defining the device * may be the device (/dev/xxx), a label given using -L, or the uuid *) | generic_opt "fstabkey" /device|label|uuid/ (* Variable: option *) let option = (* preserve partitions -- always *) generic_opt_list "preserve_always" (Rx.integer | "all") (* preserve partitions -- unless the system is installed for the first time *) | generic_opt_list "preserve_reinstall" Rx.integer (* attempt to resize partitions *) | generic_opt_list "resize" Rx.integer (* write a disklabel - default is msdos *) | generic_opt "disklabel" /msdos|gpt/ (* mark a partition bootable, default is / *) | generic_opt "bootable" Rx.integer (* do not assume the disk to be a physical device, use with xen *) | [ key "virtual" ] (* when creating the fstab, the key used for defining the device * may be the device (/dev/xxx), a label given using -L, or the uuid *) | generic_opt "fstabkey" /device|label|uuid/ | generic_opt_list "always_format" Rx.integer | generic_opt "sameas" Rx.fspath let cryptoption = [ key "randinit" ] (* Variable: disk_config *) let disk_config = let excludes = "lvm" | "raid" | "end" | /disk[0-9]+/ | "cryptsetup" | "tmpfs" in let other_label = Rx.fspath - excludes in disk_config_entry "lvm" lvmoption volume_lvm | disk_config_entry "raid" raidoption volume_raid | disk_config_entry "tmpfs" option volume_tmpfs | disk_config_entry "end" option volume (* there shouldn't be an option here *) | disk_config_entry /disk[0-9]+/ option volume | disk_config_entry "cryptsetup" cryptoption volume_cryptsetup | disk_config_entry other_label option volume (* Variable: lns The disk_config lens *) let lns = (disk_config|comment|empty)* (* let xfm = transform lns Util.stdexcl *)