/usr/share/augeas/lenses/dist/tests/test_kdump.aug is in augeas-lenses 1.2.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | (* Test for kdump lens *)
module Test_kdump =
let conf = "# this is a comment
#another commented line
#comment after empty line
#
#comment after empty comment
path /var/crash
core_collector makedumpfile -c
default poweroff
raw /dev/sda5
ext3 /dev/sda3
net my.server.com:/export/tmp
net user@my.server.com
link_delay 60
kdump_post /var/crash/scripts/kdump-post.sh
#extra_bins /usr/bin/lftp /a/b/c
extra_bins /usr/bin/lftp /a/b/c
disk_timeout 30
extra_modules gfs2 extra modules more
options babla labl kbak df=dfg
options babla labl kbak df=dfg
options babla labl kbak df=dfg
"
let conf2 = "#comment
kdump_post /var/crash/scripts/kdump-post.sh
extra_modules gfs2 extra modules more
"
(* test Kdump.lns get conf = ?*)
test Kdump.lns get conf2 =
{ "#comment" = "comment" }
{ "kdump_post" = "/var/crash/scripts/kdump-post.sh" }
{ "extra_modules"
{ "1" = "gfs2" }
{ "2" = "extra" }
{ "3" = "modules" }
{ "4" = "more" }
}
|