Defined Type: initramfs::script
- Defined in:
- modules/initramfs/manifests/script.pp
Overview
SPDX-License-Identifier: Apache-2.0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'modules/initramfs/manifests/script.pp', line 2
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,
require => Package['initramfs-tools'],
notify => Exec['update-initramfs'],
}
}
|