1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# File 'modules/initramfs/manifests/script.pp', line 1
define initramfs::script($boot_stage='', $content='') {
include initramfs
case $boot_stage {
'init-bottom', 'init-premount', 'init-top', 'local-bottom', 'local-premount', 'local-top', 'nfs-bottom', 'nfs-premount', 'nfs-top', 'panic': {}
default: { fail("Unsupported initramfs stage: ${boot_stage}") }
}
file { "/etc/initramfs-tools/scripts/${boot_stage}/${title}":
owner => 'root',
group => 'root',
mode => '0544',
content => $content,
notify => Exec['update-initramfs'],
}
}
|