Defined Type: initramfs::hook

Defined in:
modules/initramfs/manifests/hook.pp

Overview

Parameters:

  • content (Any) (defaults to: '')


1
2
3
4
5
6
7
8
9
10
11
# File 'modules/initramfs/manifests/hook.pp', line 1

define initramfs::hook($content='') {
    include initramfs

    file { "/etc/initramfs-tools/hooks/${title}":
        owner   => 'root',
        group   => 'root',
        mode    => '0544',
        content => $content,
        notify  => Exec['update-initramfs'],
    }
}