Linux tsuru-no-tsurugi 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.0.18 & Your IP : 216.73.216.68
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
2024-08-28 22:15
access.aug
3.58
KB
-rw-r--r--
2021-12-24 21:03
activemq_conf.aug
1.47
KB
-rw-r--r--
2021-12-24 21:03
activemq_xml.aug
864
B
-rw-r--r--
2021-12-24 21:03
afs_cellalias.aug
1.56
KB
-rw-r--r--
2021-12-24 21:03
aliases.aug
2.18
KB
-rw-r--r--
2021-12-24 21:03
anaconda.aug
775
B
-rw-r--r--
2021-12-24 21:03
anacron.aug
2.49
KB
-rw-r--r--
2021-12-24 21:03
approx.aug
1.26
KB
-rw-r--r--
2021-12-24 21:03
apt_update_manager.aug
1.11
KB
-rw-r--r--
2021-12-24 21:03
aptcacherngsecurity.aug
726
B
-rw-r--r--
2021-12-24 21:03
aptconf.aug
3.9
KB
-rw-r--r--
2021-12-24 21:03
aptpreferences.aug
1.79
KB
-rw-r--r--
2021-12-24 21:03
aptsources.aug
1.98
KB
-rw-r--r--
2021-12-24 21:03
authinfo2.aug
1.44
KB
-rw-r--r--
2021-12-24 21:03
authorized_keys.aug
1.84
KB
-rw-r--r--
2021-12-24 21:03
authselectpam.aug
3.7
KB
-rw-r--r--
2021-12-24 21:03
automaster.aug
3.31
KB
-rw-r--r--
2021-12-24 21:03
automounter.aug
4.05
KB
-rw-r--r--
2021-12-24 21:03
avahi.aug
1.38
KB
-rw-r--r--
2021-12-24 21:03
backuppchosts.aug
1014
B
-rw-r--r--
2021-12-24 21:03
bbhosts.aug
4.24
KB
-rw-r--r--
2021-12-24 21:03
bootconf.aug
3.65
KB
-rw-r--r--
2021-12-24 21:03
build.aug
16.65
KB
-rw-r--r--
2021-12-24 21:03
cachefilesd.aug
2
KB
-rw-r--r--
2021-12-24 21:03
carbon.aug
1.54
KB
-rw-r--r--
2021-12-24 21:03
ceph.aug
719
B
-rw-r--r--
2021-12-24 21:03
cgconfig.aug
3.37
KB
-rw-r--r--
2021-12-24 21:03
cgrules.aug
2.38
KB
-rw-r--r--
2021-12-24 21:03
channels.aug
3.84
KB
-rw-r--r--
2021-12-24 21:03
chrony.aug
13.65
KB
-rw-r--r--
2021-12-24 21:03
clamav.aug
1.68
KB
-rw-r--r--
2021-12-24 21:03
cmdline.aug
500
B
-rw-r--r--
2021-12-24 21:03
cobblermodules.aug
398
B
-rw-r--r--
2021-12-24 21:03
cobblersettings.aug
2.24
KB
-rw-r--r--
2021-12-24 21:03
collectd.aug
869
B
-rw-r--r--
2021-12-24 21:03
cpanel.aug
824
B
-rw-r--r--
2021-12-24 21:03
cron.aug
4.05
KB
-rw-r--r--
2021-12-24 21:03
cron_user.aug
1.26
KB
-rw-r--r--
2021-12-24 21:03
crypttab.aug
3.08
KB
-rw-r--r--
2021-12-24 21:03
csv.aug
1.18
KB
-rw-r--r--
2021-12-24 21:03
cups.aug
459
B
-rw-r--r--
2021-12-24 21:03
cyrus_imapd.aug
1.51
KB
-rw-r--r--
2021-12-24 21:03
darkice.aug
773
B
-rw-r--r--
2021-12-24 21:03
debctrl.aug
3.61
KB
-rw-r--r--
2021-12-24 21:03
desktop.aug
1.39
KB
-rw-r--r--
2021-12-24 21:03
devfsrules.aug
619
B
-rw-r--r--
2021-12-24 21:03
device_map.aug
620
B
-rw-r--r--
2021-12-24 21:03
dhclient.aug
6.69
KB
-rw-r--r--
2021-12-24 21:03
dhcpd.aug
20.88
KB
-rw-r--r--
2021-12-24 21:03
dns_zone.aug
2.89
KB
-rw-r--r--
2021-12-24 21:03
dnsmasq.aug
2.16
KB
-rw-r--r--
2021-12-24 21:03
dovecot.aug
3.98
KB
-rw-r--r--
2021-12-24 21:03
dpkg.aug
2.78
KB
-rw-r--r--
2021-12-24 21:03
dput.aug
2.16
KB
-rw-r--r--
2021-12-24 21:03
erlang.aug
4.33
KB
-rw-r--r--
2021-12-24 21:03
ethers.aug
663
B
-rw-r--r--
2021-12-24 21:03
exports.aug
2.37
KB
-rw-r--r--
2021-12-24 21:03
fai_diskconfig.aug
9.28
KB
-rw-r--r--
2021-12-24 21:03
fail2ban.aug
1.79
KB
-rw-r--r--
2021-12-24 21:03
fonts.aug
819
B
-rw-r--r--
2021-12-24 21:03
fstab.aug
1.23
KB
-rw-r--r--
2021-12-24 21:03
fuse.aug
871
B
-rw-r--r--
2021-12-24 21:03
gdm.aug
1.8
KB
-rw-r--r--
2021-12-24 21:03
getcap.aug
1.57
KB
-rw-r--r--
2021-12-24 21:03
group.aug
1.66
KB
-rw-r--r--
2021-12-24 21:03
grub.aug
11.05
KB
-rw-r--r--
2021-12-24 21:03
grubenv.aug
508
B
-rw-r--r--
2021-12-24 21:03
gshadow.aug
2.19
KB
-rw-r--r--
2021-12-24 21:03
gtkbookmarks.aug
855
B
-rw-r--r--
2021-12-24 21:03
host_conf.aug
1.9
KB
-rw-r--r--
2021-12-24 21:03
hostname.aug
435
B
-rw-r--r--
2021-12-24 21:03
hosts.aug
485
B
-rw-r--r--
2021-12-24 21:03
hosts_access.aug
4.32
KB
-rw-r--r--
2021-12-24 21:03
htpasswd.aug
1.02
KB
-rw-r--r--
2021-12-24 21:03
httpd.aug
7.35
KB
-rw-r--r--
2021-12-24 21:03
inetd.aug
6.22
KB
-rw-r--r--
2021-12-24 21:03
inifile.aug
15.49
KB
-rw-r--r--
2021-12-24 21:03
inittab.aug
780
B
-rw-r--r--
2021-12-24 21:03
inputrc.aug
1.62
KB
-rw-r--r--
2021-12-24 21:03
interfaces.aug
4.62
KB
-rw-r--r--
2021-12-24 21:03
iproute2.aug
323
B
-rw-r--r--
2021-12-24 21:03
iptables.aug
2.64
KB
-rw-r--r--
2021-12-24 21:03
iscsid.aug
684
B
-rw-r--r--
2021-12-24 21:03
jaas.aug
1.57
KB
-rw-r--r--
2021-12-24 21:03
jettyrealm.aug
1.52
KB
-rw-r--r--
2021-12-24 21:03
jmxaccess.aug
1.35
KB
-rw-r--r--
2021-12-24 21:03
jmxpassword.aug
1.34
KB
-rw-r--r--
2021-12-24 21:03
json.aug
2.15
KB
-rw-r--r--
2021-12-24 21:03
kdump.aug
2.91
KB
-rw-r--r--
2021-12-24 21:03
keepalived.aug
10.7
KB
-rw-r--r--
2021-12-24 21:03
known_hosts.aug
1.93
KB
-rw-r--r--
2021-12-24 21:03
koji.aug
898
B
-rw-r--r--
2021-12-24 21:03
krb5.aug
6.98
KB
-rw-r--r--
2021-12-24 21:03
ldif.aug
7.65
KB
-rw-r--r--
2021-12-24 21:03
ldso.aug
1.06
KB
-rw-r--r--
2021-12-24 21:03
lightdm.aug
1.75
KB
-rw-r--r--
2021-12-24 21:03
limits.aug
2.02
KB
-rw-r--r--
2021-12-24 21:03
login_defs.aug
615
B
-rw-r--r--
2021-12-24 21:03
logrotate.aug
4.23
KB
-rw-r--r--
2021-12-24 21:03
logwatch.aug
1.44
KB
-rw-r--r--
2021-12-24 21:03
lokkit.aug
2.16
KB
-rw-r--r--
2021-12-24 21:03
lvm.aug
2.03
KB
-rw-r--r--
2021-12-24 21:03
mailscanner.aug
1.66
KB
-rw-r--r--
2021-12-24 21:03
mailscanner_rules.aug
2.84
KB
-rw-r--r--
2021-12-24 21:03
masterpasswd.aug
4.36
KB
-rw-r--r--
2021-12-24 21:03
mcollective.aug
1.09
KB
-rw-r--r--
2021-12-24 21:03
mdadm_conf.aug
10.05
KB
-rw-r--r--
2021-12-24 21:03
memcached.aug
1.24
KB
-rw-r--r--
2021-12-24 21:03
mke2fs.aug
6.29
KB
-rw-r--r--
2021-12-24 21:03
modprobe.aug
3.34
KB
-rw-r--r--
2021-12-24 21:03
modules.aug
741
B
-rw-r--r--
2021-12-24 21:03
modules_conf.aug
1.04
KB
-rw-r--r--
2021-12-24 21:03
mongodbserver.aug
1.17
KB
-rw-r--r--
2021-12-24 21:03
monit.aug
2.13
KB
-rw-r--r--
2021-12-24 21:03
multipath.aug
4.21
KB
-rw-r--r--
2021-12-24 21:03
mysql.aug
1.95
KB
-rw-r--r--
2021-12-24 21:03
nagioscfg.aug
2.09
KB
-rw-r--r--
2021-12-24 21:03
nagiosobjects.aug
1.57
KB
-rw-r--r--
2021-12-24 21:03
netmasks.aug
1.69
KB
-rw-r--r--
2021-12-24 21:03
networkmanager.aug
2.18
KB
-rw-r--r--
2021-12-24 21:03
networks.aug
1.09
KB
-rw-r--r--
2021-12-24 21:03
nginx.aug
3.65
KB
-rw-r--r--
2021-12-24 21:03
nrpe.aug
1.78
KB
-rw-r--r--
2021-12-24 21:03
nslcd.aug
9.87
KB
-rw-r--r--
2021-12-24 21:03
nsswitch.aug
2.33
KB
-rw-r--r--
2021-12-24 21:03
ntp.aug
5.29
KB
-rw-r--r--
2021-12-24 21:03
ntpd.aug
4.75
KB
-rw-r--r--
2021-12-24 21:03
odbc.aug
1.42
KB
-rw-r--r--
2021-12-24 21:03
opendkim.aug
3.1
KB
-rw-r--r--
2021-12-24 21:03
openshift_config.aug
2.46
KB
-rw-r--r--
2021-12-24 21:03
openshift_http.aug
1.03
KB
-rw-r--r--
2021-12-24 21:03
openshift_quickstarts.aug
1.02
KB
-rw-r--r--
2021-12-24 21:03
openvpn.aug
22.28
KB
-rw-r--r--
2021-12-24 21:03
oz.aug
1.35
KB
-rw-r--r--
2021-12-24 21:03
pagekite.aug
2.6
KB
-rw-r--r--
2021-12-24 21:03
pam.aug
2.58
KB
-rw-r--r--
2021-12-24 21:03
pamconf.aug
1.23
KB
-rw-r--r--
2021-12-24 21:03
passwd.aug
3.52
KB
-rw-r--r--
2021-12-24 21:03
pbuilder.aug
638
B
-rw-r--r--
2021-12-24 21:03
pg_hba.aug
2.97
KB
-rw-r--r--
2021-12-24 21:03
pgbouncer.aug
1.43
KB
-rw-r--r--
2021-12-24 21:03
php.aug
2.34
KB
-rw-r--r--
2021-12-24 21:03
phpvars.aug
3.85
KB
-rw-r--r--
2021-12-24 21:03
postfix_access.aug
771
B
-rw-r--r--
2021-12-24 21:03
postfix_main.aug
1.52
KB
-rw-r--r--
2021-12-24 21:03
postfix_master.aug
1.9
KB
-rw-r--r--
2021-12-24 21:03
postfix_passwordmap.aug
1.28
KB
-rw-r--r--
2021-12-24 21:03
postfix_sasl_smtpd.aug
697
B
-rw-r--r--
2021-12-24 21:03
postfix_transport.aug
1.48
KB
-rw-r--r--
2021-12-24 21:03
postfix_virtual.aug
1.32
KB
-rw-r--r--
2021-12-24 21:03
postgresql.aug
2.1
KB
-rw-r--r--
2021-12-24 21:03
properties.aug
2.3
KB
-rw-r--r--
2021-12-24 21:03
protocols.aug
1.05
KB
-rw-r--r--
2021-12-24 21:03
puppet.aug
1.52
KB
-rw-r--r--
2021-12-24 21:03
puppet_auth.aug
1.95
KB
-rw-r--r--
2021-12-24 21:03
puppetfile.aug
2.27
KB
-rw-r--r--
2021-12-24 21:03
puppetfileserver.aug
3.12
KB
-rw-r--r--
2021-12-24 21:03
pylonspaste.aug
2.3
KB
-rw-r--r--
2021-12-24 21:03
pythonpaste.aug
1.99
KB
-rw-r--r--
2021-12-24 21:03
qpid.aug
670
B
-rw-r--r--
2021-12-24 21:03
quote.aug
6.71
KB
-rw-r--r--
2021-12-24 21:03
rabbitmq.aug
4.69
KB
-rw-r--r--
2021-12-24 21:03
radicale.aug
1.48
KB
-rw-r--r--
2021-12-24 21:03
rancid.aug
927
B
-rw-r--r--
2021-12-24 21:03
redis.aug
6.29
KB
-rw-r--r--
2021-12-24 21:03
reprepro_uploaders.aug
5.47
KB
-rw-r--r--
2021-12-24 21:03
resolv.aug
3.99
KB
-rw-r--r--
2021-12-24 21:03
rhsm.aug
1.1
KB
-rw-r--r--
2021-12-24 21:03
rmt.aug
788
B
-rw-r--r--
2021-12-24 21:03
rsyncd.aug
1.97
KB
-rw-r--r--
2021-12-24 21:03
rsyslog.aug
3.27
KB
-rw-r--r--
2021-12-24 21:03
rtadvd.aug
854
B
-rw-r--r--
2021-12-24 21:03
rx.aug
4.2
KB
-rw-r--r--
2021-12-24 21:03
samba.aug
1.71
KB
-rw-r--r--
2021-12-24 21:03
schroot.aug
1.79
KB
-rw-r--r--
2021-12-24 21:03
securetty.aug
450
B
-rw-r--r--
2021-12-24 21:03
semanage.aug
859
B
-rw-r--r--
2021-12-24 21:03
sep.aug
1.28
KB
-rw-r--r--
2021-12-24 21:03
services.aug
2.82
KB
-rw-r--r--
2021-12-24 21:03
shadow.aug
2.35
KB
-rw-r--r--
2021-12-24 21:03
shells.aug
745
B
-rw-r--r--
2021-12-24 21:03
shellvars.aug
12.02
KB
-rw-r--r--
2021-12-24 21:03
shellvars_list.aug
1.74
KB
-rw-r--r--
2021-12-24 21:03
simplelines.aug
1.13
KB
-rw-r--r--
2021-12-24 21:03
simplevars.aug
1.4
KB
-rw-r--r--
2021-12-24 21:03
sip_conf.aug
1.61
KB
-rw-r--r--
2021-12-24 21:03
slapd.aug
5.2
KB
-rw-r--r--
2021-12-24 21:03
smbusers.aug
781
B
-rw-r--r--
2021-12-24 21:03
solaris_system.aug
3.15
KB
-rw-r--r--
2021-12-24 21:03
soma.aug
1.14
KB
-rw-r--r--
2021-12-24 21:03
spacevars.aug
1.42
KB
-rw-r--r--
2021-12-24 21:03
splunk.aug
1.64
KB
-rw-r--r--
2021-12-24 21:03
squid.aug
15.95
KB
-rw-r--r--
2021-12-24 21:03
ssh.aug
4.39
KB
-rw-r--r--
2021-12-24 21:03
sshd.aug
4.15
KB
-rw-r--r--
2021-12-24 21:03
sssd.aug
861
B
-rw-r--r--
2021-12-24 21:03
star.aug
941
B
-rw-r--r--
2021-12-24 21:03
strongswan.aug
1.63
KB
-rw-r--r--
2021-12-24 21:03
stunnel.aug
2.21
KB
-rw-r--r--
2021-12-24 21:03
subversion.aug
2.75
KB
-rw-r--r--
2021-12-24 21:03
sudoers.aug
20.08
KB
-rw-r--r--
2021-12-24 21:03
sysconfig.aug
2.49
KB
-rw-r--r--
2021-12-24 21:03
sysconfig_route.aug
2.55
KB
-rw-r--r--
2021-12-24 21:03
sysctl.aug
923
B
-rw-r--r--
2021-12-24 21:03
syslog.aug
7.33
KB
-rw-r--r--
2021-12-24 21:03
systemd.aug
6.01
KB
-rw-r--r--
2021-12-24 21:03
termcap.aug
1.03
KB
-rw-r--r--
2021-12-24 21:03
thttpd.aug
1.31
KB
-rw-r--r--
2021-12-24 21:03
tinc.aug
1.08
KB
-rw-r--r--
2021-12-24 21:03
tmpfiles.aug
3.08
KB
-rw-r--r--
2021-12-24 21:03
toml.aug
4.08
KB
-rw-r--r--
2021-12-24 21:03
trapperkeeper.aug
4.01
KB
-rw-r--r--
2021-12-24 21:03
tuned.aug
387
B
-rw-r--r--
2021-12-24 21:03
up2date.aug
2.21
KB
-rw-r--r--
2021-12-24 21:03
updatedb.aug
1.13
KB
-rw-r--r--
2021-12-24 21:03
util.aug
4.85
KB
-rw-r--r--
2021-12-24 21:03
vfstab.aug
1.71
KB
-rw-r--r--
2021-12-24 21:03
vmware_config.aug
702
B
-rw-r--r--
2021-12-24 21:03
vsftpd.aug
2.72
KB
-rw-r--r--
2021-12-24 21:03
webmin.aug
1.23
KB
-rw-r--r--
2021-12-24 21:03
wine.aug
1.92
KB
-rw-r--r--
2021-12-24 21:03
xendconfsxp.aug
1.07
KB
-rw-r--r--
2021-12-24 21:03
xinetd.aug
4.02
KB
-rw-r--r--
2021-12-24 21:03
xml.aug
6.33
KB
-rw-r--r--
2021-12-24 21:03
xorg.aug
10.43
KB
-rw-r--r--
2021-12-24 21:03
xymon.aug
2.26
KB
-rw-r--r--
2021-12-24 21:03
xymon_alerting.aug
6.11
KB
-rw-r--r--
2021-12-24 21:03
yaml.aug
1.54
KB
-rw-r--r--
2021-12-24 21:03
yum.aug
2.19
KB
-rw-r--r--
2021-12-24 21:03
Save
Rename
(* Module: Grub Parses grub configuration Author: David Lutterkort <lutter@redhat.com> About: License This file is licenced under the LGPL v2+, like the rest of Augeas. About: Lens Usage To be documented *) module Grub = autoload xfm (* This only covers the most basic grub directives. Needs to be *) (* expanded to cover more (and more esoteric) directives *) (* It is good enough to handle the grub.conf on my Fedora 8 box *) (************************************************************************ * Group: USEFUL PRIMITIVES *************************************************************************) (* View: value_to_eol *) let value_to_eol = store /[^= \t\n][^\n]*[^= \t\n]|[^= \t\n]/ (* View: eol *) let eol = Util.eol (* View: spc *) let spc = Util.del_ws_spc (* View: opt_ws *) let opt_ws = Util.del_opt_ws "" (* View: dels *) let dels (s:string) = Util.del_str s (* View: eq *) let eq = dels "=" (* View: switch *) let switch (n:regexp) = dels "--" . key n (* View: switch_arg *) let switch_arg (n:regexp) = switch n . eq . store Rx.no_spaces (* View: value_sep *) let value_sep (dflt:string) = del /[ \t]*[ \t=][ \t]*/ dflt (* View: comment_re *) let comment_re = /([^ \t\n].*[^ \t\n]|[^ \t\n])/ - /# ## (Start|End) Default Options ##/ (* View: comment *) let comment = [ Util.indent . label "#comment" . del /#[ \t]*/ "# " . store comment_re . eol ] (* View: empty *) let empty = Util.empty (************************************************************************ * Group: USEFUL FUNCTIONS *************************************************************************) (* View: command *) let command (kw:regexp) (indent:string) = Util.del_opt_ws indent . key kw (* View: kw_arg *) let kw_arg (kw:regexp) (indent:string) (dflt_sep:string) = [ command kw indent . value_sep dflt_sep . value_to_eol . eol ] (* View: kw_boot_arg *) let kw_boot_arg (kw:regexp) = kw_arg kw "\t" " " (* View: kw_menu_arg *) let kw_menu_arg (kw:regexp) = kw_arg kw "" " " (* View: password_arg *) let password_arg = [ command "password" "" . (spc . [ switch "md5" ])? . (spc . [ switch "encrypted" ])? . spc . store (/[^ \t\n]+/ - /--[^ \t\n]+/) . (spc . [ label "file" . store /[^ \t\n]+/ ])? . eol ] (* View: kw_pres *) let kw_pres (kw:string) = [ opt_ws . key kw . eol ] (* View: error * Parse a line that looks almost like a valid setting, but isn't, * into an '#error' node. Any line that starts with letters, but not * anything matching kw, is considered an error line. * * Parameters: * kw:regexp - the valid keywords that are _not_ considered an * error *) let error (kw:regexp) = let not_kw = /[a-zA-Z]+/ - kw in [ label "#error" . Util.del_opt_ws "\t" . store (not_kw . /([^a-zA-Z\n].*[^ \t\n])?/) . eol ] (************************************************************************ * Group: BOOT ENTRIES *************************************************************************) (* View: device * This is a shell-only directive in upstream grub; the grub versions * in at least Fedora/RHEL use this to find devices for UEFI boot *) let device = [ command "device" "" . Sep.space . store /\([A-Za-z0-9_.-]+\)/ . spc . [ label "file" . value_to_eol ] . Util.eol ] (* View: color *) let color = (* Should we nail it down to exactly the color names that *) (* grub supports ? *) let color_name = store /[A-Za-z-]+/ in let color_spec = [ label "foreground" . color_name] . dels "/" . [ label "background" . color_name ] in [ opt_ws . key "color" . spc . [ label "normal" . color_spec ] . (spc . [ label "highlight" . color_spec ])? . eol ] (* View: serial *) let serial = [ command "serial" "" . [ spc . switch_arg /unit|port|speed|word|parity|stop|device/ ]* . eol ] (* View: terminal *) let terminal = [ command "terminal" "" . ([ spc . switch /dumb|no-echo|no-edit|silent/ ] |[ spc . switch_arg /timeout|lines/ ])* . [ spc . key /console|serial|hercules/ ]* . eol ] (* View: setkey *) let setkey = [ command "setkey" "" . ( spc . [ label "to" . store Rx.no_spaces ] . spc . [ label "from" . store Rx.no_spaces ] )? . eol ] (* View: menu_entry *) let menu_entry = kw_menu_arg "default" | kw_menu_arg "fallback" | kw_pres "hiddenmenu" | kw_menu_arg "timeout" | kw_menu_arg "splashimage" | kw_menu_arg "gfxmenu" | kw_menu_arg "foreground" | kw_menu_arg "background" | kw_menu_arg "verbose" | kw_menu_arg "boot" (* only for CLI, ignored in conf *) | serial | terminal | password_arg | color | device | setkey (* View: menu_error * Accept lines not matching menu_entry and stuff them into * '#error' nodes *) let menu_error = let kw = /default|fallback|hiddenmenu|timeout|splashimage|gfxmenu/ |/foreground|background|verbose|boot|password|title/ |/serial|setkey|terminal|color|device/ in error kw (* View: menu_setting * a valid menu setting or a line that looks like one but is an #error *) let menu_setting = menu_entry | menu_error (* View: title *) let title = del /title[ \t=]+/ "title " . value_to_eol . eol (* View: multiboot_arg * Permits a second form for Solaris multiboot kernels that * take a path (with a slash) as their first arg, e.g. * /boot/multiboot kernel/unix another=arg *) let multiboot_arg = [ label "@path" . store (Rx.word . "/" . Rx.no_spaces) ] (* View: kernel_args Parse the file name and args on a kernel or module line. *) let kernel_args = let arg = /[A-Za-z0-9_.$\+-]+/ - /type|no-mem-option/ in store /(\([a-z0-9,]+\))?\/[^ \t\n]*/ . (spc . multiboot_arg)? . (spc . [ key arg . (eq. store /([^ \t\n])*/)?])* . eol (* View: module_line Solaris extension adds module$ and kernel$ for variable interpolation *) let module_line = [ command /module\$?/ "\t" . spc . kernel_args ] (* View: map_line *) let map_line = [ command "map" "\t" . spc . [ label "from" . store /[()A-za-z0-9]+/ ] . spc . [ label "to" . store /[()A-za-z0-9]+/ ] . eol ] (* View: kernel *) let kernel = [ command /kernel\$?/ "\t" . (spc . ([switch "type" . eq . store /[a-z]+/] |[switch "no-mem-option"]))* . spc . kernel_args ] (* View: chainloader *) let chainloader = [ command "chainloader" "\t" . [ spc . switch "force" ]? . spc . store Rx.no_spaces . eol ] (* View: savedefault *) let savedefault = [ command "savedefault" "\t" . (spc . store Rx.integer)? . eol ] (* View: configfile *) let configfile = [ command "configfile" "\t" . spc . store Rx.no_spaces . eol ] (* View: boot_entry <boot> entries *) let boot_entry = let boot_arg_re = "root" | "initrd" | "rootnoverify" | "uuid" | "findroot" | "bootfs" (* Solaris extensions *) in kw_boot_arg boot_arg_re | kernel | chainloader | kw_pres "quiet" (* Seems to be a Ubuntu extension *) | savedefault | configfile | module_line | map_line | kw_pres "lock" | kw_pres "makeactive" | password_arg (* View: boot_error * Accept lines not matching boot_entry and stuff them into * '#error' nodes *) let boot_error = let kw = /lock|uuid|password|root|initrd|rootnoverify|findroot|bootfs/ |/configfile|chainloader|title|boot|quiet|kernel|module/ |/makeactive|savedefault|map/ in error kw (* View: boot_setting * a valid boot setting or a line that looks like one but is an #error *) let boot_setting = boot_entry | boot_error (* View: boot *) let boot = let line = ((boot_setting|comment)* . boot_setting)? in [ label "title" . title . line ] (************************************************************************ * Group: DEBIAN-SPECIFIC SECTIONS *************************************************************************) (* View: debian_header Header for a <debian>-specific section *) let debian_header = "## ## Start Default Options ##\n" (* View: debian_footer Footer for a <debian>-specific section *) let debian_footer = "## ## End Default Options ##\n" (* View: debian_comment_re *) let debian_comment_re = /([^ \t\n].*[^ \t\n]|[^ \t\n])/ - "## End Default Options ##" (* View: debian_comment A comment entry inside a <debian>-specific section *) let debian_comment = [ Util.indent . label "#comment" . del /##[ \t]*/ "## " . store debian_comment_re . eol ] (* View: debian_setting_re *) let debian_setting_re = "kopt" | "groot" | "alternative" | "lockalternative" | "defoptions" | "lockold" | "xenhopt" | "xenkopt" | "altoptions" | "howmany" | "memtest86" | "updatedefaultentry" | "savedefault" | "indomU" (* View: debian_entry *) let debian_entry = [ Util.del_str "#" . Util.indent . key debian_setting_re . del /[ \t]*=/ "=" . value_to_eol? . eol ] (* View: debian A debian-specific section, made of <debian_entry> lines *) let debian = [ label "debian" . del debian_header debian_header . (debian_comment|empty|debian_entry)* . del debian_footer debian_footer ] (************************************************************************ * Group: LENS AND FILTER *************************************************************************) (* View: lns *) let lns = (comment | empty | menu_setting | debian)* . (boot . (comment | empty | boot)*)? (* View: filter *) let filter = incl "/boot/grub/grub.conf" . incl "/boot/grub/menu.lst" . incl "/etc/grub.conf" . incl "/boot/efi/EFI/*/grub.conf" let xfm = transform lns filter